Atlassian · Example Payload

Atlassian Atlassianpublishdraftworkflowscheme Example

CodeCollaborationPlatformProductivitySoftware Development

Atlassian Atlassianpublishdraftworkflowscheme Example is an example object payload from Atlassian, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "atlassianPublishdraftworkflowscheme",
  "method": "POST",
  "path": "/rest/api/3/workflowscheme/{id}/draft/publish",
  "summary": "Atlassian Publish Draft Workflow Scheme",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "statusMappings": [
          {
            "issueTypeId": "10001",
            "newStatusId": "1",
            "statusId": "3"
          },
          {
            "issueTypeId": "10001",
            "newStatusId": "2",
            "statusId": "2"
          },
          {
            "issueTypeId": "10002",
            "newStatusId": "10003",
            "statusId": "10005"
          },
          {
            "issueTypeId": "10003",
            "newStatusId": "1",
            "statusId": "4"
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "400",
      "contentType": "application/json",
      "example": "{\"errorMessages\":[\"Issue type with ID '2','4' is missing the mappings required for statuses with IDs 10004.\"],\"errors\":{}}"
    },
    {
      "status": "404",
      "contentType": "application/json",
      "example": "{\"errorMessages\":[\"Draft workflow scheme was not found.\"],\"errors\":{}}"
    }
  ]
}