# Method: projects.locations.integrations.executions.cancel

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.CancelExecutionResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel#try-it)

Cancellation of an execution and associated sub-executions. This will not cancel an IN_PROCESS or completed(SUCCESSFUL, FAILED or CANCELLED) executions.

### HTTP request

`POST https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*/executions/*}:cancel`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The execution resource name. Format: projects/{gcpProjectId}/locations/{location}/products/{product}/integrations/{integrationId}/executions/{executionId} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "cancelReason": string } ``` |

| Fields ||
|---|---|
| `cancelReason` | `string` Required. Reason for cancelling the execution. This is provided by the client requesting the cancellation, and is not used by the Platform. |

### Response body

Response for cancelling an execution.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "isCanceled": boolean } ``` |

| Fields ||
|---|---|
| `isCanceled` | `boolean` True if cancellation performed successfully. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `integrations.executions.cancel`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).