2018-08-11 15:50:56 +02:00
|
|
|
# Get global settings
|
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/server_settings:get)}
|
2018-08-11 15:50:56 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
2018-08-11 15:50:56 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{generate_code_example(python)|/server_settings:get|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
2018-08-11 15:50:56 +02:00
|
|
|
|
2019-10-14 10:49:30 +02:00
|
|
|
{generate_code_example(curl)|/server_settings:get|example}
|
2018-08-11 15:50:56 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{end_tabs}
|
2018-08-11 15:50:56 +02:00
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2018-08-11 15:50:56 +02:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/server_settings:get}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Return values
|
|
|
|
|
2020-05-20 11:57:57 +02:00
|
|
|
{generate_return_values_table|zulip.yaml|/server_settings:get}
|
2018-08-11 15:50:56 +02:00
|
|
|
|
2018-09-27 22:35:57 +02:00
|
|
|
[ldap-auth]: https://zulip.readthedocs.io/en/latest/production/authentication-methods.html#ldap-including-active-directory
|
2018-08-11 15:50:56 +02:00
|
|
|
|
|
|
|
Please note that not all of these attributes are guaranteed to appear in a
|
|
|
|
response, for two reasons:
|
|
|
|
|
|
|
|
* This endpoint has evolved over time, so responses from older Zulip servers
|
|
|
|
might be missing some keys (in which case a client should assume the
|
|
|
|
appropriate default).
|
|
|
|
* If a `/server_settings` request is made to the root domain of a
|
2020-06-09 00:58:42 +02:00
|
|
|
multi-subdomain server, like the root domain of zulip.com, the settings
|
2018-08-11 15:50:56 +02:00
|
|
|
that are realm-specific are not known and thus not provided.
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response for a single-organization server may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/server_settings:get|fixture(200)}
|