Update Default Workflow

PUT {{baseUrl}}/rest/api/3/workflowscheme/:id/default

Sets the default workflow for a workflow scheme.

Note that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request object and a draft workflow scheme is created or updated with the new default workflow. The draft workflow scheme can be published in Jira.

Permissions required: Administer Jira global permission.

Request Body

{"workflow"=>"<string>", "updateDraftIfNeeded"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:101010,&quot;name&quot;:&quot;Example workflow scheme&quot;,&quot;description&quot;:&quot;The description of the example workflow scheme.&quot;,&quot;defaultWorkflow&quot;:&quot;jira&quot;,&quot;issueTypeMappings&quot;:{&quot;10000&quot;:&quot;scrum workflow&quot;,&quot;10001&quot;:&quot;builds workflow&quot;},&quot;draft&quot;:false,&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010&quot;}