Cancel a text analytics job

put/analytics/{jobId}/state

Cancels the specified text analytics job and returns the new job state.

Request Samples

1

Response Samples

1cancelled

Path Parameters

NameTypeRequiredDescription
jobId
string
true

The unique identifier of the text analytics job.

Query Parameters

NameTypeRequiredDescription
value
string
true

The new job state. The expected value is cancelled.

Responses

StatusMeaningDescription
200OK

The request succeeded.

Schema
400Bad Request

The request was invalid when attempting to update the state to a value other than cancelled.

Schema
404Not Found

There is no job for the given identifier.

Schema
409Conflict

The job has already finished and cannot be cancelled.

Schema