Deletes the task status of the workflow with the specified id.

A workflow must always have at least one task status of type 'todo' and one of type 'done'. If you attempt to delete the last status of either type, this endpoint will return a BadRequest error. If any tasks are currently using this status, you must provide a NewTaskStatusId in the request body to migrate those tasks to a different status within the same workflow. <Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

workflowIdstringRequiredformat: "uuid"
The Id of the workflow.
taskStatusIdstringRequiredformat: "uuid"
The Id of the task status to delete.

Request

Optional form containing the new status Id for migration.
newTaskStatusIdstring or nullOptionalformat: "uuid"
The Id of the task status to migrate tasks to. Required if any tasks are currently using the status being deleted. Must be a different status within the same workflow.

Response

No Content

Errors

400
Bad Request Error
404
Not Found Error