---
title: "Withdraw Consent on Behalf of a Data Subject"
method: PUT
path: "/api/consentmanager/v1/transactions/withdraw/fordatasubject"
tags: ["Transactions"]
deprecated: true
---

# Withdraw Consent on Behalf of a Data Subject

`PUT /api/consentmanager/v1/transactions/withdraw/fordatasubject`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/consentmanager/v1/transactions/withdraw/fordatasubject`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `CONSENT`

> **Deprecated.**

Use this API to withdraw consent on behalf of a data subject for a specific Purpose. The data subject identifier must be included either in the `identifier` query or header parameter, preferably passed in the header.

## Query parameters

- `identifier` string
- `withdrawnBy` string, required

## Headers

- `identifier` string

## Request body

- ConsentPreferencesUniversalConsentPreferenceManagWithdrawOnBehalfOfRequest
  - `Notes` string: Additional notes to be recorded as part of withdrawal
  - `PurposeId` string, uuid, required: Unique identifier of the purpose for which consent is being withdrawn
  - `Origin` string: Source or origin of the withdrawal request (e.g., IMPORT, API, SDK, ONETRUST, PREFERENCE_CENTER)

## Response `200`

OK - Successfully withdrew consent on behalf of data subject

- ConsentPreferencesUniversalConsentPreferenceManagTransactionWithdrawResult
  - `Status` string: Message representing the consent withdrawal status

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management.md) - [All operations](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/revisions/fe4a0697ec9d?raw)
