Skip to content
sign in

==> call the api

Change some settings

PATCH /v1/settings

Only the fields present change; null clears one.

Needs a personal access token: Authorization: Bearer <token>.

Body

application/json

  • themestring or null

    A theme id, e.g. jade.

  • mode"light" | "dark" or null
  • lang"en" | "ru" or null

Answer

200 Success.

  • settingsobjectrequired
    • themestring or nullrequired

      A theme id, e.g. jade.

    • mode"light" | "dark" or nullrequired
    • lang"en" | "ru" or nullrequired

Refusals

Each answers { "error": "...", "code"?: "..." } with its status.

statuswhen
400The request is not valid.
401No valid token.

Example

curl -X PATCH 'https://api.clusterstuck.sh/v1/settings' \
  -H 'Authorization: Bearer <your token>' \
  -H 'Content-Type: application/json' \
  -d '{"theme":"...","mode":"light","lang":"en"}'