PUT
/v2/projects/{projectId}/tasks/{taskNumber}/cancelCancel a task
Cancels a task in a project. Use projectId and taskNumber to identify the task to cancel; the response contains the task after the operation.
taskNumberintegerrequired
The 64-bit integer number of the task to cancel.
projectIdintegerrequired
The 64-bit integer identifier of the project containing the task.
200Returns the task object, including its current state and task details.
agencyobjectoptional
assigneesarray<object>required
authorobjectoptional
baseCharacterCountintegerrequired
baseWordCountintegerrequired
branchNamestringoptional
closedAtintegeroptional
createdAtintegeroptional
descriptionstringrequired
doneItemsintegerrequired
dueDateintegeroptional
languageobjectrequired
namestringoptional
numberintegerrequired
originBranchNamestringoptional
statestringrequired
totalItemsintegerrequired
typestringrequired
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to cancel the task.
codestringrequired
paramsarray<object>optional
404Returned when the project or task does not exist.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid. A 401 is returned when the request is unauthenticated. A 403 is returned when the authenticated user cannot cancel the task. A 404 is returned when the projectId path parameter or taskNumber path parameter does not identify an existing project task.