[comment]: # ({acca5f57-acca5f57})
# settings.update

[comment]: # ({/acca5f57-acca5f57})

[comment]: # ({9252b567-9252b567})
### Description

`object settings.update(object settings)`

This method allows to update existing common settings.

::: noteclassic
This method is only available to *Super admin* user type.
Permissions to call the method can be revoked in user role settings. See
[User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

[comment]: # ({/9252b567-9252b567})

[comment]: # ({7e621fea-7e621fea})
### Parameters

`(object)` Settings properties to be updated.

[comment]: # ({/7e621fea-7e621fea})

[comment]: # ({440363c6-440363c6})
### Return values

`(array)` Returns array with the names of updated parameters.

[comment]: # ({/440363c6-440363c6})

[comment]: # ({d4c3d8cd-c59f767c})
### Examples

Request:

```json
{
    "jsonrpc": "2.0",
    "method": "settings.update",
    "params": {
        "login_attempts": "1",
        "login_block": "1m"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": [
        "login_attempts",
        "login_block"
    ],
    "id": 1
}
```

[comment]: # ({/d4c3d8cd-c59f767c})

[comment]: # ({e23f9161-e23f9161})
### Source

CSettings::update() in *ui/include/classes/api/services/CSettings.php*.

[comment]: # ({/e23f9161-e23f9161})
