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:
204 No Content – on success
400 Bad Request – if the data is invalid
- 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:
200 OK – when the option was set
204 No Content – when the option was cleared
400 Bad Request – when the new value was invalid
403 Forbidden – when the current user cannot set this option
- 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