This method allows to update existing maintenances.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.
Parameters
(object/array)
Maintenance properties to be updated.
Additionally to the , the method accepts the following parameters.
At least one host or host group must be defined for each maintenance.
(object)
Returns an object containing the IDs of the updated maintenances under the property.
Examples
Assigning different hosts
Request:
Response:
{
"jsonrpc": "2.0",
"result": {
]
},
}
Source
CMaintenance::update() in ui/include/classes/api/services/CMaintenance.php.