[comment]: # translation:outdated

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

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

[comment]: # ({e998ef32-e666a98a})
### Опис

`object housekeeping.update(object housekeeping)`

Цей спосіб дозволяє оновити існуючі налаштування домашнього господарства.

::: noteclassic
Цей метод доступний лише для користувачів типу *Суперадміністратор*. Дозволи на виклик методу можна скасувати в налаштуваннях ролі користувача. Див. [Ролі користувача](/manual/web_interface/frontend_sections/administration/user_roles) для отримання додаткової інформації.
:::

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

[comment]: # ({ffeb597e-59628702})
### Параметри

`(object)` Властивості прибирання буде оновлено.

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

[comment]: # ({5c57fb6f-440363c6})
### Повернуті значення

`(array)` Повертає масив із назвами оновлених параметрів.

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

[comment]: # ({93c46c52-16b418fc})
### Приклади

Запит:

```json
{
    "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
}
```

Відповідь:

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

[comment]: # ({/93c46c52-16b418fc})

[comment]: # ({d089883f-d089883f})
### Джерело

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

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