Options

GET /api/options/

Get the current values of all options.

Some options are not listed if the current user is not an administrator.

Returns:

a JSON object mapping option keys to values.

PATCH /api/options/

Change the values of all provided options.

The request body should be a JSON object mapping option keys to values.

Note

Options that cannot be set due to the user’s permission level will be silently ignored. To ensure an option is set, use POST /api/options/<key> instead.

Status Codes:
POST /api/options/(option)

Change a single option.

The POST body should be a single JSON value.

Returns:

An option object containing the key and new value

Status Codes:
GET /api/options/timezones

Get a list of all supported timezones.

Returns:

JSON array of strings, each containing a tz data identifier

GET /api/options/languages

Get all supported languages.

Returns:

a JSON array of strings, each containing an ISO 639 Set 1 language code

GET /api/options/currencies

Get all supported currencies.

Returns:

a JSON array of strings, each containing an ISO 4217 currency code