---
title: "Withdraw All Consents"
method: POST
path: "/consent-hosting/{business_id}/withdraw-all"
tags: ["consent-hosting"]
---

# Withdraw All Consents

`POST /consent-hosting/{business_id}/withdraw-all`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/consent-hosting/{business_id}/withdraw-all`
- Auth: none declared

Withdraws every consent this person currently has with this business, in one step (Section 6(4): as
easy to withdraw as to give). Each one is a normal 'withdrawn' record in the same hash chain, and each
fires the usual consent.withdrawn webhook.

## Path parameters

- `business_id` string, required

## Headers

- `X-Consent-Token` string, nullable

## Request body

- WithdrawAllRequest
  - `principal_identifier` string, email, required
  - `language` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openproof/apis/openproof-api.md) · [All operations](https://skmtc.dev/openproof/apis/openproof-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openproof/apis/openproof-api/revisions/ddd0cac7c37e?raw)
