Workflows

Pause a workflow

No new runs start; runs under way go on (cancel them with POST /workflows/{id}/cancel-runs). Audited `workflow.pause`.

POST
/workflows/{id}/pause

No new runs start; runs under way go on (cancel them with POST /workflows/{id}/cancel-runs). Audited workflow.pause.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Response Body

Success

application/json
  1. response

A workflow: its draft definition and, once published, its latest version's number.

created_at*string
deferred*integer

Run starts put off while the project had max_concurrent_per_project runs under way (tried again later, never dropped).

Formatint64
definition*

The draft (docs/specs/workflow.schema.json, GET /workflows/schema).

id*string
Formatuuid
name*string
object*string
published_version?|
Formatint32
refused*integer

Run starts the loop guard refused (the workflow in its own causal chain, or a chain past max_chain_depth).

Formatint64
signing_secret?|

Signs its webhook steps' requests (Standard Webhooks); in single reads by an API key only.

status*string

draft (never published), active (its latest version starts runs) or paused.

throttled*integer

Run starts its throttle refused.

Formatint64
unpublished_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*string
Example Request
curl -X POST 'https://api.exx.sh/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/pause'
Example Response
{  "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"}