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

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

[comment]: # ({9403302c-e666a98a})
### Apraksts

`object housekeeping.update(object housekeeping)`

Šī metode ļauj atjaunināt esošos housekeeper iestatījumus.

::: noteclassic
Šī metode ir pieejama tikai *Super admin* lietotāja tipam.
Atļaujas izsaukt šo metodi var tikt atsauktas lietotāja lomas iestatījumos. Skatiet
[Lietotāju
lomas](/manual/web_interface/frontend_sections/users/user_roles)
papildinformācijai.
:::

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

[comment]: # ({77d4245f-59628702})
### Parametri

`(object)` [Uzturēšanas īpašības](object#housekeeping), kas jāatjaunina.

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

[comment]: # ({f63e579c-440363c6})
### Atgrieztās vērtības

`(array)` Atgriež masīvu ar atjaunināto parametru nosaukumiem.

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

[comment]: # ({e9fb8fb2-16b418fc})
### Piemēri

[Pieprasījums](/manual/api#performing-requests):

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

Atbilde:

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

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

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

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

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