Atlassian · Example Payload

Atlassian Atlassiansetdefaultvalues Example

CodeCollaborationPlatformProductivitySoftware Development

Atlassian Atlassiansetdefaultvalues 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": "atlassianSetdefaultvalues",
  "method": "PUT",
  "path": "/rest/api/3/field/{fieldId}/context/defaultValue",
  "summary": "Atlassian Set Custom Field Contexts Default Values",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "defaultValues": [
          {
            "contextId": "10100",
            "optionId": "10001",
            "type": "option.single"
          },
          {
            "contextId": "10101",
            "optionId": "10003",
            "type": "option.single"
          },
          {
            "contextId": "10103",
            "optionId": "10005",
            "type": "option.single"
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "400",
      "contentType": "application/json",
      "example": "{\"errorMessages\":[\"All default values in the request must have the same type.\"],\"errors\":{}}"
    },
    {
      "status": "403",
      "contentType": "application/json",
      "example": "{\"errorMessages\":[\"Only Jira administrators can access custom field contexts.\"],\"errors\":{}}"
    },
    {
      "status": "404",
      "contentType": "application/json",
      "example": "{\"errorMessages\":[\"The context was not found.\"],\"errors\":{}}"
    }
  ]
}