---
title: "Cancel a job"
method: POST
path: "/vmware/v1/orgs/{orgID}/jobs/cancel"
tags: ["VMware"]
---

# Cancel a job

`POST /vmware/v1/orgs/{orgID}/jobs/cancel`

## Request

- Base URL: `//apis.druva.com/phoenix` (relative, and the document’s source URL is not known)
- URL: `//apis.druva.com/phoenix/vmware/v1/orgs/{orgID}/jobs/cancel`
- Auth: API key in header `Authorization`

Cancels the specified job.

## Path parameters

- `orgID` integer, required

## Request body

- VMCancellationParams: VMCancellationParams is job cancellation request inputs
  - `jobID` integer: Specify the ID of the job to be canceled. Get the ID of the job using the 'List all jobs' VMware API.

## Response `200`

Success

- VMCancelJobResponse: VMCancelJobResponse is response to cancel job API
  - `jobID` integer: A unique identification number associated with the canceled job if the job is successfully canceled. This parameter will be 0 if the job completed, completed with errors, was canceled, or failed before it could be canceled.

## Other responses

- `400`: Bad Request
- `401`: The request did not include an authentication token or the authentication token was expired.
- `403`: Forbidden
- `404`: The requested resource was not found.
- `500`: The request was not processed due to an internal error in Cloud.

---

[API](https://skmtc.dev/druva/apis/enterprise-workloads.md) - [All operations](https://skmtc.dev/druva/apis/enterprise-workloads/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/enterprise-workloads/revisions/18fc75e8229e?raw)
