[comment]: # translation:outdated

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

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

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

`object housekeeping.update(object housekeeping)`

Questo metodo consente di aggiornare le impostazioni di housekeeping esistenti.

::: noteclassic
Questo metodo è disponibile solo per il tipo di utente *Super admin*.
I permessi per chiamare il metodo possono essere revocati nelle impostazioni del ruolo utente. Vedere
[Ruoli
utente](/manual/web_interface/frontend_sections/users/user_roles)
per ulteriori informazioni.
:::

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

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

`(object)` [Proprietà di housekeeping](object#housekeeping) da aggiornare.

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

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

"(array)" Restituisce un array con i nomi dei parametri aggiornati.

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

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

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

Risposta:

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

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

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