provider Workflow scheme drafts PUT /rest/api/3/workflowscheme/{id}/draft/default
@utdk/jira /rest/api/3/workflowscheme/{id}/draft/default
Update draft default workflow
Sets the default workflow for a workflow scheme's draft. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
id path required
The ID of the workflow scheme that the draft belongs to.
integer

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updatedraftdefaultworkflow
PUT/rest/api/3/workflowscheme/{id}/draft/default
Sets the default workflow for a workflow scheme's draft. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

Parameters

required

The ID of the workflow scheme that the draft belongs to.

Input

Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow. Defaults to `false`.

required

The name of the workflow to set as the default workflow.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.updatedraftdefaultworkflow()