Set Workflow Archived
PUT
/workflow-definitions/{workflowId}/archive/Path parameters
workflowId- Identifier used by the registered route.
Request field shape
application/jsonField names and types are inferred. Use the checked notes below to supply valid values.
{
"archived": true
}Handler-checked behavior
Send archived as an explicit boolean: true archives the workflow and false restores it. This changes the latest workflow version status and returns the updated definition with 200 OK; historical definitions and executions remain stored. A missing boolean returns 422, an unknown workflow returns 404, and imported read-only snapshots return 403. Archived workflows reject new plans and executions until restored.
Related guide
See the Workflows guide for related tasks and context.