---
title: "POST /v1/{+name}:revoke"
method: POST
path: "/v1/{+name}:revoke"
tags: ["projects"]
---

# POST /v1/{+name}:revoke

`POST /v1/{+name}:revoke`

Revokes a given subscription.

## Path parameters

- `name` string, required

## Request body

- RevokeSubscriptionRequest — Message for revoking a subscription.
  - `revokeCommercial` boolean — Optional. If the subscription is commercial then this field must be set to true, otherwise a failure is thrown. This acts as a safety guard to avoid revoking commercial subscriptions accidentally.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/analyticshub.md) · [All operations](https://skmtc.dev/google/apis/analyticshub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/analyticshub/revisions/64724ad4013d/schema)
