Archive a dynamic workflow definition. Archiving does not change the status or version, and archived workflows support read-only queries.
Prerequisites
Complete the endpoint and authentication configuration. See API Overview and Authentication.
Endpoint
POST /dynamic_workflows/{workflow_id}/archive
Semantics
Archiving does not add a published version or change status or version; the archived field indicates the archive state. Archived workflows support read-only queries but cannot be edited or used to start new runs. Historical runs and execution results are retained.
Path parameterworkflow_idstring (Required)Workflow ID in the format wf_<ULID> | Request example |
Response fieldsidstringWorkflow IDtype stringFixed to dynamic_workflowname / description stringName and descriptionstatus / archived string / boolstatus remains published; archived is true after archivingversion intPublished version number before archivingscript / input_schema string / objectComplete script and input schemacreated_at / updated_at stringCreation and last modification time, ISO 8601request_id stringUnique request identifier | Response example |