---
title: "Patch Privacy Settings"
method: PATCH
path: "/users/privacy-settings"
tags: ["users"]
---

# Patch Privacy Settings

`PATCH /users/privacy-settings`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/users/privacy-settings`
- Auth: none declared

Patch consent fields with append-only audit trail.

Accepts any combination of allow_ai_improvement, marketing_consent and
analytics_consent.
For each changed field, appends { field, from, to, timestamp } to
consent_withdrawal_history. No-ops fields whose value is unchanged.

If no privacy settings row exists (e.g. clinician who skipped the parent
location step), creates one with jurisdiction_code=PENDING.

## Request body

- PrivacySettingsPatch
  - `allow_ai_improvement` boolean, nullable
  - `marketing_consent` boolean, nullable
  - `analytics_consent` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
