Preview or apply the deletion of a used status
curl --request POST \ --url https://example.com/api/v1/projects/example/statuses/example/deletion \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fingerprint": "example", "targetStatus": "example" }'Without fingerprint, previews deleting a status of the workflow the project uses: the tasks of every project on that workflow that sit in it, the targetStatus they move to and the blockers. With the preview’s fingerprint, moves those tasks and deletes the status; a stale fingerprint or a blocker answers 422. Requires the settings.manage permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Task status identifier (CUID2).
Task status identifier (CUID2).
Request Body
Section titled “Request Body”object
The fingerprint of the preview to apply. Omitted, the call only previews.
The status, by name or id, that receives the tasks of the deleted one.
Example generated
{ "fingerprint": "example", "targetStatus": "example"}Responses
Section titled “Responses”The preview, or the number of tasks moved.
object
object
object
object
Example generated
{ "data": { "blockers": [ "example" ], "fingerprint": "example", "movedTasks": 1, "projects": [ { "projectId": "example", "projectName": "example", "taskCount": 1 } ], "statusId": "example", "statusName": "example", "taskCount": 1, "toStatus": { "id": "example", "name": "example" }, "workflow": { "id": "example", "name": "example" } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The preview has blockers or is stale.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC