Archive contract flow
Hides a contract flow from the default list and stops new contract
requests from being sent with it. Existing contract requests are
untouched. Use this for a flow that is linked to contract requests and so
cannot be deleted. Reversible with unarchive. Returns 404 if the flow
does not exist.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Archive a contract flow you no longer want to use. An archived flow disappears from the default list and no new contract can be sent from it. Contracts already sent from it are not affected.
Use this for a flow that has been used to send contracts and therefore cannot be deleted. It is reversible with Unarchive Workflow.
This endpoint is for contract flows (
/contracts/workflows). Automation workflows (/workflows) have their own archive endpoint.
Authentication & access
- Requires a client API token:
Authorization: Bearer <token>. - API credentials need the
contracts.workflows.archivepermission. Dashboard users need the OWNER or OPERATIONS role, or a custom role that includes this permission. - Contract signing must be enabled for the client. If it is disabled the request returns
403.
Path parameters
| Parameter | Description |
|---|---|
workflow_id | ID of the contract flow to archive. Must belong to your client. |
Behavior
- The flow
statusbecomesarchived. Archiving an already archived flow succeeds and changes nothing. GET /api/v1/contracts/workflowsonly returns it withinclude_archived=trueorstatus=archived.POST /api/v1/contracts/requestswith thisworkflow_idreturns400until it is unarchived.- Updating the flow with
PUT /api/v1/contracts/workflows/{workflow_id}also restores it topublished.
Response
200 - The updated contract flow, with status set to archived.
Error responses
| Status | When |
|---|---|
403 | Contract signing is disabled for the client |
404 | No contract flow with this workflow_id exists under your client |
Standard 401 (authentication), 403 (insufficient permission or role), and 429 (rate limit) responses apply to every endpoint and are documented in the Error reference.