Workflow API
Update Workflow
Update an existing workflow. Fields left out of the request keep their current values. Set approval_procedure_id to the ID of a named approval procedure to require its approval before each run, or to an empty string to remove the workflow’s approval; omit it to leave approval unchanged.
PUT
Update Workflow
Authentication and permissions
Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Workspace keys must allow every workspace checked by the request. OAuth access depends on the user’s roles and resource access.
Publishing and changing the approval procedure in one request requires the permissions of both cases.
- Attach an approval procedure: With a non-empty approval_procedure_id, the procedure must be a named approval procedure in the workflow’s workspace.
- Remove the approval procedure: An empty approval_procedure_id removes the workflow’s approval procedure.
Authorizations
Body
application/json
The ID of a named approval procedure that must approve each run of the workflow. Omit to leave the workflow's approval unchanged; send an empty string to remove it. Attaching requires permission to view approval procedures and removing requires permission to delete them. Requires first-class approval procedures on the workspace.
Response
200 - application/json
Success

