Workflows

Publish a workflow

Checks the draft (its shape, every step reachable, both branches of each condition and event wait, no loop, waits within limits.toml [workflows] max_run_age, templates published and passing the content scan, segments, topics, properties and rules of this project, webhook URLs the executor's egress guard calls: public https hosts) and stores it as the next immutable version; the workflow is active on it. Runs under way keep their version. Audited `workflow.publish`.

POST
/workflows/{id}/publish

Checks the draft (its shape, every step reachable, both branches of each condition and event wait, no loop, waits within limits.toml [workflows] max_run_age, templates published and passing the content scan, segments, topics, properties and rules of this project, webhook URLs the executor's egress guard calls: public https hosts) and stores it as the next immutable version; the workflow is active on it. Runs under way keep their version. Audited workflow.publish.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Response Body

Success

application/json
  1. response

A published version: immutable.

definition*
object*string
published_at*string
version*integer
Formatint32
workflow_id*string
Formatuuid
Example Request
curl -X POST 'https://api.exx.sh/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish'
Example Response
{  "definition": {},  "object": "string",  "published_at": "string",  "version": 0,  "workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe"}