[comment]: # translation:outdated

[comment]: # ({acca5f57-acca5f57})
# 更新

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

[comment]: # ({6375071d-9252b567})
### 描述
`object settings.update(object settings)`

此方法允许更新已存在的常用设置。
::: 请注意
此方法只有_Super admin(超级管理员)_用户可用。可以在用户角色设置中撤销调用该方法的权限。更多信息请查看 [用户角色](/manual/web_interface/frontend_sections/administration/user_roles)。
:::

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

[comment]: # ({0782d4ac-7e621fea})
### 参数

`(对象)` 设置待更新的属性。

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

[comment]: # ({f63e579c-440363c6})
### 返回值

`(数组)` 返回被更新参数名字的数组。

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

[comment]: # ({475c98ad-c59f767c})
### 示例
[请求](/manual/api#performing-requests):

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

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

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

[comment]: # ({e23f9161-e23f9161})
### 来源
CSettings::update() in *ui/include/classes/api/services/CSettings.php*.

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