Jobs: cancel

Requires authorization

Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs. For more information, see pricing. Try it now.

Request

HTTP request

POST https://www.googleapis.com/bigquery/v2/projects/projectId/jobs/jobId/cancel

Parameters

Parameter name Value Description
Path parameters
jobId string [Required] Job ID of the job to cancel
projectId string [Required] Project ID of the job to cancel

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/cloud-platform

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "bigquery#jobCancelResponse",
  "job": jobs Resource
}
Property name Value Description Notes
kind string The resource type of the response.
job nested object The final state of the job.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.

Send feedback about...