---
title: "Update user preferences"
method: POST
path: "/user/preferences"
tags: ["User"]
---

# Update user preferences

`POST /user/preferences`

Updates supported preferences for the current account and returns the updated user object.

## Headers

- `Idempotency-Key` string, uuid

## Request body

- UserPreferences
  - `vpnServer` string, host — Default server hostname to connect via OpenVPN
  - `proxyServer` string, host — Default server hostname to connect via proxy
  - `proxyProtocol` 'http' | 'https' | 'socks5' — Default proxy protocol

## Response `200`

Successful operation

- User
  - `login` string — User login
  - `email` string, email — User email address
  - `balance` integer — User balance in cents (100$ = 10000)
  - `portsCount` integer — Total ports number
  - `portsLimit` integer — Maximum allowed ports number
  - `discountPercent` integer — User discount in percentage
  - `preferences` UserPreferences
    - `vpnServer` string, host — Default server hostname to connect via OpenVPN
    - `proxyServer` string, host — Default server hostname to connect via proxy
    - `proxyProtocol` 'http' | 'https' | 'socks5' — Default proxy protocol

## Other responses

- `401` — The bearer token is missing, invalid, or no longer active.
- `429` — The configured request limit has been exceeded.
- `500` — Error

---

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