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

Update specified issue type scheme from JSON representation

Updates the specified issue type scheme from a JSON representation

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

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

Path parameters
schemeIdstringrequired

The id of the issue type scheme to update.

Request body
requiredapplication/json

Specifies the new set of attributes that the issue type scheme will take on.

defaultIssueTypeIdstring
descriptionstring
issueTypeIDsstring[]
issueTypeIdsstring[]
namestring
Responses
200

Returns a JSON representation of the updated issue type scheme.

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. This happens when the name or issue types are invalid. It also occurs when the default issue type isn't found in the associated issue types collection.

401

Returned if the calling user is not authenticated.

403

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

404

Returned if the issue type scheme to update does not exist.

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