v3

OpenAPI 3.0.12026-07-311341,046757.3 KB
ApplicantWorkflowApiAgentResource

Create a new draft revision from an existing one

Creates a new editable draft by copying the title, nodes, and edges of an existing revision. The new draft keeps the same workflow name with the next revision number, letting you iterate on a published workflow without altering the live version. The source revision must not itself be a draft, and a workflow can have only one draft at a time. Optionally supply a name in the body to copy the definition under a different workflow name; in that case an existing draft with that name is updated rather than rejected.

post/resources/api/agent/applicantWorkflows/{id}/draft

Path parameters

idstring required

Id of the source workflow revision to copy.

Request body

name'default' | 'test' | 'actions'

Workflow name to copy the source revision under. Omit to keep the source workflow's name.

Example request

{
  "name": "default"
}

Response

default response

clientIdstring

Identifier of the client that owns this workflow.

idstring
namestring

Workflow name shared by every revision of the same workflow.

revisioninteger

Revision number within the workflow; increases with each new revision.

revisionStatusstring

Current status of this revision.

titlestring

Display title of the workflow.