---
title: "Update My Preferences"
method: PATCH
path: "/api/v1/auth/preferences"
tags: ["user-preferences"]
---

# Update My Preferences

`PATCH /api/v1/auth/preferences`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/preferences`
- Auth: none declared

Update the current user's preferences.

Only provided fields will be updated. Omitted fields will retain their current values.

## Headers

- `Authorization` string

## Request body

- UserPreferencesUpdate: Schema for updating user preferences. All fields are optional for partial updates.
  - `theme` 'light' | 'dark' | 'system': User preference theme enumeration.
  - `language` 'en' | 'en' | 'es' | 'es' | 'fr' | 'fr' | 'de' | 'de' | 'ja' | 'ja': User language enumeration.
  - `timezone` string, nullable
  - `date_format` string, nullable
  - `time_format` string, nullable
  - `email_notifications` boolean, nullable
  - `email_daily_digest` boolean, nullable
  - `email_weekly_summary` boolean, nullable
  - `email_alert_critical` boolean, nullable
  - `email_alert_high` boolean, nullable
  - `email_alert_medium` boolean, nullable
  - `email_alert_low` boolean, nullable
  - `notify_onboarding_tips` boolean, nullable
  - `notify_usage_alerts` boolean, nullable
  - `default_dashboard_view` 'overview' | 'detailed' | 'minimal': Dashboard view enumeration.
  - `items_per_page` integer, nullable
  - `show_tooltips` boolean, nullable
  - `compact_view` boolean, nullable
  - `help_level` 'none' | 'light' | 'heavy': User help level preference for contextual help system. Controls how much contextual help is shown in the UI: - NONE: No help displayed (power users) - LIGHT: Help icons linking to docs (default) - HEAVY: Verbose inline explanations (new users, onboarding)
  - `show_cookie_button` boolean, nullable
  - `show_learning_menu` boolean, nullable
  - `enable_keyboard_shortcuts` boolean, nullable
  - `auto_refresh_interval` integer, nullable
  - `default_asset_view` 'list' | 'grid' | 'table': Asset display mode enumeration.
  - `custom_settings` object, nullable

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

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