[comment]: # translation:outdated

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

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

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

`object housekeeping.update(object housekeeping)`

Cette méthode permet de mettre à jour les paramètres de nettoyage existants.

::: noteclassic
Cette méthode est uniquement disponible pour le type d’utilisateur *Super admin*.
Les autorisations d’appel de la méthode peuvent être révoquées dans les paramètres du rôle utilisateur. Voir
[User
roles](/manual/web_interface/frontend_sections/users/user_roles)
pour plus d’informations.
:::

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

[comment]: # ({77d4245f-59628702})
### Paramètres

`(object)` [Propriétés de nettoyage interne](object#housekeeping) à mettre à jour.

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

[comment]: # ({f63e579c-440363c6})
### Valeurs de retour

`(array)` Renvoie un tableau contenant les noms des paramètres mis à jour.

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

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

[Requête](/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
}
```

Réponse :

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

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

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