---
title: "Save the caller's consent choice when it is newer than the stored one"
method: PUT
path: "/v1/users/me/privacy-consent"
tags: ["user"]
---

# Save the caller's consent choice when it is newer than the stored one

`PUT /v1/users/me/privacy-consent`

## Request

- Base URL: `https://app.legend.trade/api/rest`
- URL: `https://app.legend.trade/api/rest/v1/users/me/privacy-consent`
- Auth: HTTP bearer

## Request body

- object
  - `analytics` boolean, required
  - `marketing` boolean
  - `preferences` boolean
  - `decidedAt` string, date-time, required

## Response `200`

Successful response

- PrivacyConsentResponse
  - `consent` PrivacyConsent, required
    - `analytics` boolean, required
    - `marketing` boolean, nullable, required
    - `preferences` boolean, nullable, required
    - `decidedAt` string, date-time, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `404`: Not found
- `500`: Internal server error

## Changes

- **2026-10-26** `8b66d973c4f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/legend/apis/legend-api/changes/v1/users/me/privacy-consent/put.md)

---

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