[comment]: # translation:outdated

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

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

[comment]: # ({92c4135b-9252b567})
### 説明

`object settings.update(object settings)`

このメソッドで、既存の共通設定を更新できます。

::: noteclassic
このメソッドは*Super admin*ユーザータイプでのみ使用できます。 メソッドを呼び出す権限は、ユーザーロール設定で取り消すことができます。 詳細については[ユーザーの役割](/manual/web_interface/frontend_sections/administration/user_roles)を参照してください。
:::

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

[comment]: # ({68cf19ec-7e621fea})
### パラメータ

`(object)` 更新する設定プロパティ

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

[comment]: # ({96d647e0-440363c6})
### 戻り値

`(array)` 更新されたパラメータの名前を含む配列を返します

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

[comment]: # ({fa1dc9b4-c59f767c})
### 例

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]: # ({/fa1dc9b4-c59f767c})

[comment]: # ({e23f9161-e23f9161})
### ソース

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

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