---
title: "Set commercial email preference"
method: PATCH
path: "/v1/notifications/commercial-email"
tags: ["notifications"]
---

# Set commercial email preference

`PATCH /v1/notifications/commercial-email`

## Request

- Base URL: `https://app.legend.trade/api/rest`
- URL: `https://app.legend.trade/api/rest/v1/notifications/commercial-email`
- Auth: HTTP bearer

## Request body

- object
  - `enabled` boolean, required
  - `expectedUserId` string, uuid

## Response `200`

Successful response

- NotificationCommercialEmailOutput
  - `enabled` boolean, required
  - `known` boolean, required
  - `hasEmail` boolean, required
  - `suppressed` boolean, required
  - `legacySyncPending` boolean, required

## Other responses

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

## Changes

- **2026-10-22** `71524db9527a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/legend/apis/legend-api/changes/v1/notifications/commercial-email/patch.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)
