This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

housekeeping.update

Description

object housekeeping.update(object housekeeping)

This method allows to update existing housekeeping settings.

This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

Parameters

(object) Housekeeping properties to be updated.

Return values

(array) Returns array with the names of updated parameters.

Examples

Request:

{
           "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
       }
Copy
✔ Copied

Response:

{
           "jsonrpc": "2.0",
           "result": [
               "hk_events_mode",
               "hk_events_trigger",
               "hk_events_internal",
               "hk_events_discovery"
           ],
           "id": 1
       }
Copy
✔ Copied

Source

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

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.