---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:cancel"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:cancel"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:cancel

`POST /v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:cancel`

## Request

- Base URL: `https://storagebatchoperations.googleapis.com`
- URL: `https://storagebatchoperations.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:cancel`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Cancels a batch job.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `jobsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- CancelJobRequest: Message for Job to Cancel
  - `requestId` string: Optional. An optional request ID to identify requests. Specify a unique request ID in case you need to retry your request. Requests with same `request_id` are ignored for at least 60 minutes since the first request. The request ID must be a valid UUID with the exception that zero UUID isn't supported (00000000-0000-0000-0000-000000000000).

## Response `200`

Successful response

- CancelJobResponse: Message for response to cancel Job.

---

[API](https://skmtc.dev/google/apis/storagebatchoperations.md) - [All operations](https://skmtc.dev/google/apis/storagebatchoperations/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/storagebatchoperations/revisions/4dec1b1deb36?raw)
