Workflows
Delete workflow draft step
Remove one step from the latest draft with every edge touching it; a loop or try/catch step goes with the steps it holds. A trigger step is disconnected as the builder does, then the draft is saved; a draft saved since you read it is refused with 409.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
workflow_id*stringThe workflow.
uuidstep_id*stringThe step, its workflow_module_instance_id in the workflow document.
region*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
"besg""usnv"expected_last_modified_time?|The last_modified_time of the draft you read; refused with 409 when it changed
nullvalidate_only?Validate OnlyRun every check of the write and answer 204 without writing: a refused write answers the error the write would
falseOK
application/json- response
workflow_id*Workflow Idregion*Regions"besg""usnv"version*A version without its document; step_ids lists its steps (workflow_module_instance_id)
triggers*array<>deleted_step_ids*array<string>The step deleted and, for a loop or try/catch step, the steps it held
curl -X DELETE 'https://api.stacksync.com/v1/workspaces/0/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft/steps/string?region=besg'{ "workflow_id": "<workflow_id>", "region": "besg", "version": { "workflow_version": "<workflow_version>", "is_draft": false, "is_deployed": false, "last_modified_time": "<last_modified_time>", "step_ids": [ "<step_ids>" ] }, "triggers": [ { "step_id": "<step_id>", "status": "succeeded", "msg": "<msg>" } ], "deleted_step_ids": [ "<deleted_step_ids>" ]}DELDelete workflow
Delete a workflow; its schedules and sync triggers stop.
POSTRun workflow
Run a workflow now from its input step's test data, replay a finished run (all steps, failed steps, failed steps and the steps after them, up to a step, from a step), or run one step. Follow the run with list-logs.