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

Create new priority scheme

Creates new priority scheme.

POST/api/2/priorityschemes
Authorization
AuthorizationBasic auth · headerrequired

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

Request body
requiredapplication/json

Data of priority scheme to create

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

Newly created 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 create priority scheme.

500

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

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/priorityschemes' \
  -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?