[comment]: # translation:outdated

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

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

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

`object housekeeping.update(object housekeeping)`

Mit dieser Methode können vorhandene Housekeeping-Einstellungen aktualisiert werden.

::: noteclassic
Diese Methode ist nur für den Benutzertyp *Super admin* verfügbar.
Die Berechtigung zum Aufrufen der Methode kann in den Einstellungen der Benutzerrolle entzogen werden. Weitere Informationen finden Sie unter
[Benutzerrollen](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(object)` zu aktualisierende [Housekeeping-Eigenschaften](object#housekeeping).

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

[comment]: # ({f63e579c-440363c6})
### Rückgabewerte

`(array)` Gibt ein Array mit den Namen der aktualisierten Parameter zurück.

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

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

[Anfrage](/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
}
```

Antwort:

```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})
### Quelle

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

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