Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Update a priority scheme

Updates a priority scheme. Update will be rejected if issue migration would be needed as a result of scheme update. Priority scheme update with migration is possible from the UI.

PUT/api/2/priorityschemes/{schemeId}
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
schemeIdinteger<int64>required

id of the priority scheme to update

Request body
requiredapplication/json

New scheme data

defaultOptionIdstring
descriptionstring
idinteger<int64>
namestring
optionIdsstring[]
Responses
200

Updated priority scheme

defaultOptionIdstring
defaultSchemeboolean
descriptionstring
idinteger<int64>
namestring
optionIdsstring[]
projectKeysstring[]
selfstring<uri>
400

Returned if the request is invalid.

401

Returned if the user is not authenticated.

403

Returned if the caller user does not have permission to update priority scheme.

404

Returned if the priority scheme does not exist.

500

Returned if the priority scheme was not updated because of other error.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/priorityschemes/0' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "defaultOptionId": "3",
  "description": "description",
  "id": 10100,
  "name": "priority scheme name",
  "optionIds": [
    "1",
    "2",
    "3",
    "4",
    "5"
  ]
}'
Response
{
  "defaultOptionId": "string",
  "defaultScheme": true,
  "description": "string",
  "id": 0,
  "name": "string",
  "optionIds": [
    "string"
  ],
  "projectKeys": [
    "string"
  ],
  "self": "http://example.com"
}

Was this page helpful?