---
title: "Cancel task"
method: POST
path: "/rest/api/3/task/{taskId}/cancel"
tags: ["Tasks"]
---

# Cancel task

`POST /rest/api/3/task/{taskId}/cancel`

Cancels a task.

**[Permissions](#permissions) required:** either of:

 *  *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
 *  Creator of the task.

## Path parameters

- `taskId` string, required

## Response `202`

Returned if the request is successful.

- unknown

## Other responses

- `400` — Returned if cancellation of the task is not possible.
- `401` — Returned if the authentication credentials are incorrect or missing.
- `403` — Returned if the user does not have the necessary permission.
- `404` — Returned if the task is not found.

---

[API](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api-2.md) · [All operations](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api-2/versions/5a51740d7ab3/schema)
