---
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'

## 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

## Other responses

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

---

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