Update a workflow's draft
Renames it or replaces its draft definition. Published versions and runs under way never change; publish to make the draft the next version. Audited `workflow.update`.
Renames it or replaces its draft definition. Published versions and runs under way never change; publish to make the draft the next version. Audited workflow.update.
bearerAuthorizationBearer <token>id*stringuuidapplication/json- body
Fields left out stay as they are; published versions and runs never change.
definition?|nullname?string|nullSuccess
application/json- response
A workflow: its draft definition and, once published, its latest version's number.
created_at*stringdeferred*integerRun starts put off while the project had max_concurrent_per_project runs under
way (tried again later, never dropped).
int64definition*The draft (docs/specs/workflow.schema.json, GET /workflows/schema).
id*stringuuidname*stringobject*stringpublished_version?|int32refused*integerRun starts the loop guard refused (the workflow in its own causal chain, or a chain
past max_chain_depth).
int64signing_secret?|Signs its webhook steps' requests (Standard Webhooks); in single reads by an API key only.
status*stringdraft (never published), active (its latest version starts runs) or paused.
throttled*integerRun starts its throttle refused.
int64unpublished_changes?|Whether the draft differs from the published version (always true before the first
publish), compared as the API reads both. A value the definition keeps (false, or
null in a rule or in properties) is a change; null for an optional field reads as
absent and is not, nor is what the API writes out itself (re-entry once, key
order). In single reads and changes, not in lists.
updated_at*stringcurl -X PATCH 'https://api.exx.sh/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "created_at": "string", "deferred": 0, "definition": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "object": "string", "published_version": 0, "refused": 0, "signing_secret": "string", "status": "string", "throttled": 0, "unpublished_changes": true, "updated_at": "string"}