provider Workflow scheme drafts POST /rest/api/3/workflowscheme/{id}/draft/publish
@utdk/jira /rest/api/3/workflowscheme/{id}/draft/publish
Publish draft workflow scheme
Publishes a draft workflow scheme. Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status. This operation is [asynchronous](#async). Follow the `location` link in the response to determine the status of the task and use [Get task](#api-rest-api-3-task-taskId-get) to obtain updates. **[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
validateOnly query
Whether the request only performs a validation.
boolean

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.

publishdraftworkflowscheme
POST/rest/api/3/workflowscheme/{id}/draft/publish
Publishes a draft workflow scheme. Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status. This operation is [asynchronous](#async). Follow the `location` link in the response to determine the status of the task and use [Get task](#api-rest-api-3-task-taskId-get) to obtain updates. **[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.

Whether the request only performs a validation.

Input

Mappings of statuses to new statuses for issue types.

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.publishdraftworkflowscheme({
  "validateOnly": false
})