[comment]: # translation:outdated

[comment]: # ({17e99ab8-17e99ab8})
# housekeeping.update

[comment]: # ({/17e99ab8-17e99ab8})

[comment]: # ({6155a982-e666a98a})
### 説明

`object housekeeping.update(object housekeeping)`

このメソッドでは、既存の housekeeping 設定を更新することができます。

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

:::

[comment]: # ({/6155a982-e666a98a})

[comment]: # ({26db7f80-59628702})
### Parameters

`(object)` 更新されるHousekeeping プロパティ

[comment]: # ({/26db7f80-59628702})

[comment]: # ({739a7759-440363c6})
### 戻り値

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

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

[comment]: # ({42ee2c5d-16b418fc})
### 例

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "housekeeping.update",
    "params": {
        "hk_events_mode": "1",
        "hk_events_trigger": "200d",
        "hk_events_internal": "2d",
        "hk_events_discovery": "2d"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": [
        "hk_events_mode",
        "hk_events_trigger",
        "hk_events_internal",
        "hk_events_discovery"
    ],
    "id": 1
}
```

[comment]: # ({/42ee2c5d-16b418fc})

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

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

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