---
title: "Cancel a long-running Text Analysis job."
method: POST
path: "/analyze-text/jobs/{jobId}:cancel"
---

# Cancel a long-running Text Analysis job.

`POST /analyze-text/jobs/{jobId}:cancel`

## Request

- Base URL: `{Endpoint}/language`
- URL: `{Endpoint}/language/analyze-text/jobs/{jobId}:cancel`
- Auth: one of:
  - API key in header `Ocp-Apim-Subscription-Key`
  - OAuth 2
    - Authorization code: `https://login.microsoftonline.com/common/oauth2/authorize`
    - Token URL: `https://login.microsoftonline.com/common/oauth2/token` scopes: `https://cognitiveservices.azure.com/.default`

Cancel a long-running Text Analysis job.

## Path parameters

- `jobId` string, uuid, required

## Query parameters

- `api-version` string, required

## Response `202`

The request has been accepted for processing, but processing has not yet completed.

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/cognitiveservices-languageanalyzetext.md) - [All operations](https://skmtc.dev/azure/apis/cognitiveservices-languageanalyzetext/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/cognitiveservices-languageanalyzetext/revisions/87a54ae2fce6?raw)
