Workflows
Discard Draft
Discard all draft changes and restore the workflow to its published state.
The workflow must already be published.
POST
Discard all unpublished draft changes and restore the workflow to its last published version. The blocks and edges are recreated from the published snapshot, so the draft you see in the editor matches what new runs execute.
This is the inverse of Publish Workflow: publish promotes the draft to a new version; discard throws the draft away and rolls back to the current published version. The workflow must already be published — there is no published state to restore to otherwise.
Authorizations
Path Parameters
Response
Successful Response
A workflow and its current configuration.
Unique ID for this workflow
The name of the workflow
Description of the workflow
Project that owns this workflow. Null means the organization's shared workflows project.
Published workflow metadata when a published version exists
Server-derived permissions for the current actor.
Available options:
workflow:view, workflow:edit, workflow:run, workflow:delete, workflow:publish, workflow:review, workflow:manage Provisioning state of this workflow's WorkOS authorization resource.
Available options:
provisioning, ready, failed, deleting, deleted