User

Update user preferences

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

post/user/preferences

Headers

Idempotency-Keystring uuid

Optional UUID that identifies one mutation request. Reuse it only when retrying the same request.

Request body

vpnServerstring host

Default server hostname to connect via OpenVPN

proxyServerstring host

Default server hostname to connect via proxy

proxyProtocol'http' | 'https' | 'socks5'

Default proxy protocol

Example request

{
  "vpnServer": "vpn1.ltesocks.io",
  "proxyServer": "ap1.ltesocks.io",
  "proxyProtocol": "socks5"
}

Response

Successful operation

loginstring

User login

emailstring email

User email address

balanceinteger

User balance in cents (100$ = 10000)

portsCountinteger

Total ports number

portsLimitinteger

Maximum allowed ports number

discountPercentinteger

User discount in percentage

Example response

{
  "login": "user",
  "email": "user@example.com",
  "balance": 10000,
  "portsCount": 3,
  "portsLimit": 10,
  "discountPercent": 10,
  "preferences": {
    "vpnServer": "vpn1.ltesocks.io",
    "proxyServer": "ap1.ltesocks.io",
    "proxyProtocol": "socks5"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.