---
title: "Update consent"
method: PATCH
path: "/consents/{consentId}"
tags: ["Consents"]
---

# Update consent

`PATCH /consents/{consentId}`

Partially update an existing consent record. Only the provided fields will be updated.

## Path parameters

- `consentId` string, required

## Request body

- UpdateConsentDto
  - `framework` 'GDPR' | 'PDPO'
  - `legalBasis` 'CONSENT' | 'CONTRACT' | 'LEGAL_OBLIGATION' | 'VITAL_INTEREST' | 'PUBLIC_TASK' | 'LEGITIMATE_INTEREST'
  - `purpose` union — The purpose of the consent
    - object
      - `type` 'system', required
      - `name` 'RECRUITING' | 'MARKETING_EMAIL' | 'MARKETING_SMS' | 'WHATSAPP_BUSINESS_UTILITY' | 'WHATSAPP_BUSINESS_MARKETING', required
    - object
      - `type` 'custom', required
      - `id` string, required
  - `comments` string, nullable — Free text field for additional comments
  - `receivedAt` string, date-time
  - `validUntil` string, date-time
  - `status` 'GRANTED' | 'REVOKED'

## Response `204`

Consent updated successfully

## Other responses

- `400` — Bad request - invalid consent data
- `401` — Unauthorized - invalid or missing authentication
- `404` — Consent not found
- `500` — Error response

---

[API](https://skmtc.net/spott/apis/spott-webhooks.md) · [All operations](https://skmtc.net/spott/apis/spott-webhooks/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spott/spott-webhooks/revisions/ad1f8c51cf0a/schema)
