Skip to main content
POST
Cancel Job

Overview

Part of Batch transcription, which covers the whole flow, models, languages and limits. Cancel a batch job that is not already in a conflicting terminal state.

Authentication

Path parameters

In Try it, paste a real job_id from Create job before clicking Send. Leaving the placeholder {job_id} in the URL returns 422.
string
default:"019fa854-1db0-7e45-a026-7a6b09ff6d7c"
required
Job ID returned by Create job. Replace with your own job_id before sending.

Request body

string
default:"Docs verification cancel test"
Optional cancel reason.

Example cURL

Example — Python SDK

See the Python SDK.

Response

Success (200)

Error responses

409 Already cancelled
404 Job not found
409 Already finished
string
CANCELLED on success.
string
Timestamp when the job was cancelled.

Use cases

  • Cancelling a job before start when files were uploaded by mistake
  • Stopping an in-progress batch when the pipeline is aborted

Authorizations

X-API-Key-ID
string
header
required

Your Gnani API key

Path Parameters

job_id
string
default:019fa854-1db0-7e45-a026-7a6b09ff6d7c
required

Job ID returned by Create Job. Paste the UUID from the Create Job response.

Body

application/json
reason
string

Optional cancel reason

Example:

"Docs verification cancel test"

Response

Cancelled

The response is of type object.