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

Create an issue type scheme from JSON representation

Creates an issue type scheme from a JSON representation

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

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

Request body
requiredapplication/json

Issue type scheme creation details.

defaultIssueTypeIdstring
descriptionstring
issueTypeIDsstring[]
issueTypeIdsstring[]
namestring
Responses
200

Returns a JSON representation of the newly created IssueTypeScheme if successful.

defaultIssueTypeIssueTypeJsonBean
Show properties
avatarIdinteger<int64>
descriptionstring
iconUrlstring
idstring
namestring
selfstring
subtaskboolean
descriptionstring
expandstring
idstring
issueTypesIssueTypeJsonBean[]
Show properties
Array of IssueTypeJsonBean
avatarIdinteger<int64>
descriptionstring
iconUrlstring
idstring
namestring
selfstring
subtaskboolean
namestring
selfstring
400

Returned if the request is invalid.

401

Returned if the calling user is not authenticated.

403

Returned if the calling user does not have permission to administer Jira.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/issuetypescheme' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "defaultIssueTypeId": "3",
  "description": "some new description of the scheme",
  "issueTypeIDs": [
    "string"
  ],
  "issueTypeIds": [
    "1",
    "4",
    "3"
  ],
  "name": "new name"
}'
Response
{
  "defaultIssueType": {
    "avatarId": 10002,
    "description": "A problem which impairs or prevents the functions of the product.",
    "iconUrl": "http://www.example.com/jira/images/icons/issuetypes/bug.png",
    "id": "1",
    "name": "Bug",
    "self": "http://www.example.com/jira/rest/api/2/issuetype/1",
    "subtask": false
  },
  "description": "A brief explanation of this issue type scheme.",
  "expand": "issueTypes",
  "id": "10100",
  "issueTypes": [
    {
      "avatarId": 10002,
      "description": "A problem which impairs or prevents the functions of the product.",
      "iconUrl": "http://www.example.com/jira/images/icons/issuetypes/bug.png",
      "id": "1",
      "name": "Bug",
      "self": "http://www.example.com/jira/rest/api/2/issuetype/1",
      "subtask": false
    }
  ],
  "name": "Some grouping of issue types for the greater good.",
  "self": "http://localhost:8090/jira/rest/api/2/issuetypescheme/10100"
}

Was this page helpful?