Workflows

Save workflow code

Persists a new revision of the workflow's code. Hash-deduplicates against the current revision (no-op if unchanged). Source is capped at 256KB.

post/workflows/{workflow_id}/code

Path parameters

workflow_idstring uuid required

workflow identifier

workflow identifier

Request body

messagestring

Optional commit-style note.

sourcestring required

Python source the user typed.

Response

OK

no_opboolean required

True when the submitted source's sha256 matched the prior current revision; no new row was inserted, no pointer was changed.

revisioninteger required

Per-workflow monotonic revision number.

revision_idstring required

Workflow_revisions.id of the active revision after the save.

Changes