---
title: "POST /v1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations/{operationsId}:cancel"
method: POST
path: "/v1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations/{operationsId}:cancel"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations/{operationsId}:cancel

`POST /v1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations/{operationsId}:cancel`

## Request

- Base URL: `https://firebasehosting.googleapis.com`
- URL: `https://firebasehosting.googleapis.com/v1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations/{operationsId}:cancel`
- Auth: one of:
  - 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`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/firebase`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/firebase`

CancelOperation is a part of the google.longrunning.Operations interface, but is not implemented for CustomDomain resources.

## Path parameters

- `projectsId` string, required
- `sitesId` string, required
- `customDomainsId` string, required
- `operationsId` string, required

## Request body

- CancelOperationRequest: The request message for Operations.CancelOperation.

## Response `200`

Successful response

- Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Changes

- **2026-11-04** `81dbc0b6aa03`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/firebase` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/firebase` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/firebasehosting/changes/v1/projects/:projectsId/sites/:sitesId/customDomains/:customDomainsId/operations/:operationsId:cancel/post.md)

---

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