---
title: "Update current user preferences"
method: PATCH
path: "/v1/users/me/preferences"
tags: ["user"]
---

# Update current user preferences

`PATCH /v1/users/me/preferences`

## Request body

- object
  - `tokenSelectorSort` TokenSelectorSort
    - `sortColumn` 'price' | 'change24h' | 'volume' | 'openInterest', required
    - `sortDirection` 'asc' | 'desc', required
  - `favoriteTimeframes` string[]
  - `chartType` 'bars' | 'candles' | 'hollow-candles' | 'line' | 'area' | 'baseline' | 'heikin-ashi'
  - `locale` 'en' | 'fr' | 'th' | 'ko' | 'ja' | 'zh-CN'

## Response `200`

Successful response

- UserPreferences
  - `tokenSelectorSort` TokenSelectorSortOutput, required
    - `sortColumn` 'price' | 'change24h' | 'volume' | 'openInterest', required
    - `sortDirection` 'asc' | 'desc', required
  - `favoriteTimeframes` string[], required
  - `chartType` 'bars' | 'candles' | 'hollow-candles' | 'line' | 'area' | 'baseline' | 'heikin-ashi', required
  - `locale` 'en' | 'fr' | 'th' | 'ko' | 'ja' | 'zh-CN', required

## Other responses

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

---

[API](https://skmtc.dev/legend/apis/legend-api.md) · [All operations](https://skmtc.dev/legend/apis/legend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/legend/legend-api/revisions/dbe693d00cb3/schema)
