Spec
Apply Workflow Spec
Create a new workflow from a declarative YAML spec.
The workflow id in the YAML is treated as source context, not as the target
workflow id. Use POST /v1/workflows/{workflow_id}/spec/apply to modify an
existing workflow draft.
POST
Create a new workflow from a declarative workflow YAML spec.
apply() creates a new workflow resource and writes the canonical draft graph represented by the YAML spec. It does not publish. Call the workflow publish method separately when the draft is ready to become the live version.
If the YAML includes metadata.id, Retab treats it as source context, not as the target workflow id. To modify an existing workflow, use Apply Workflow Spec to Existing Workflow.
Authorizations
Body
application/json
Body carrying a workflow's full YAML definition for validate, plan, apply, or export.
Workflow YAML definition
Response
Successful Response
The outcome of applying a workflow YAML definition: whether the workflow was created, the changes made, and a rendered_plan.
Available options:
create, update, noop