Developer Portal

Update KeyPUT

Stores a string value under the given key for the authenticated profile (upsert). This is a general-purpose key-value store used for per-profile data such as watchlists, UI preferences, notes, or account-level configuration. Callers may store any text; JSON-encoded objects are common but not required. Max body size: 128 KB. Keys must match ^[A-Za-z0-9_\-:#]+$ (max 256 chars).

View as Markdown
PUT
/settings/{key}

Authorization

AuthorizationRequiredBearer <token>

JWT token obtained from the login endpoint

In: header

Request Body

application/jsonRequired
valueRequiredstring

The string value to store. Any text is accepted; callers typically JSON-encode structured data. Max ~128 KB (enforced by body size limit).

Path Parameters

keyRequiredstring

Setting key (pattern: ^[A-Za-z0-9_-:#]+$, max 256 chars)

Maximum length: 256Pattern: "^[A-Za-z0-9_\\-:#]+$"
curl -X PUT "http://localhost:8081/api/v1/settings/<string>" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "value": "string"
  }'

Setting updated successfully (no body)