Skip to content
LogoLogo

Archive a workflow Status and replace its live Tasks

Archive a workflow Status and replace its live Tasks

POST/api/v1/statuses/{status_id}/archive-and-replace

Atomically moves every non-archived Task that references this Status to an active replacement Status in the exact same Workspace-wide or Project-scoped workflow, then archives the source. The source revision is checked through If-Match; an archived, cross-scope, missing, or self-replacement returns 409 replacement_status_unavailable.

The operation is refused with 409 required_status when archiving the source would remove the final active todo, in_progress, or done Status in its scope. Historical archived Tasks keep their source Status unchanged.

Path Parameters

status_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

If-MatchRequired
string

Entity tag containing the resource version last observed by the client.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
replacement_status_idRequired
string <uuid>

Opaque Assign-owned UUIDv7 identifier. Clients must not derive meaning from it.

Example0198ac5e-f9b7-7000-8000-000000000001

Responses