-
Notifications
You must be signed in to change notification settings - Fork 45
Settings List Action
Marius David Wieschollek edited this page Feb 4, 2024
·
1 revision
The list action returns all settings or the settings within a scope if one is given.
App Version | Change |
---|---|
2018.1.0 | Initial introduction of the API |
Url | Method | Description |
---|---|---|
/api/1.0/settings/list |
POST | Lists settings within the requested scopes |
This endpoint accepts a JSON formatted request body with an object with the following properties.
Arguments | Type | Default | Required | Description |
---|---|---|---|---|
scopes | array | - | no | An array with the names of all requested scopes as value. Available scopes are "server", "user" and "client" |
- Nextcloud Authentication required
{
"scopes": ["user", "client"]
}
The return value is a JSON formatted object with all settings from the requested scopes. The object has the names of the requested settings as the key with the current setting value as values.
Status | MIME | Type | Description |
---|---|---|---|
200 | application/json | object | An object with the settings |
{
"user.password.generator.strength": 1,
"user.password.generator.numbers": true,
"user.password.generator.special": true,
[…]
}
- If a scope has been specified, only the values of this scope will be returned
- If the specified scopes do not exist, an empty array will be returned
- If the scopes property is empty, an empty array will be returned
- If the scopes property is missing, all existing settings will be returned
Url | Method | Description |
---|---|---|
/api/1.0/settings/list |
GET | Lists all settings |
- Nextcloud Authentication required
The return value is a JSON formatted object with all settings. The object has the names of the requested settings as the key with the current setting value as values.
Status | MIME | Type | Description |
---|---|---|---|
200 | application/json | object | An object with the settings |
{
"user.password.generator.strength": 1,
"user.password.generator.numbers": true,
"user.password.generator.special": true,
[…]
}