This method allows to update existing maintenances.
Parameters
(object/array)
Maintenance properties to be updated.
Additionally to the standard maintenance properties, the method accepts the following parameters.
At least one host or host group must be defined for each maintenance.
Examples
Assigning different hosts
Replace the hosts currently assigned to maintenance “3” with two different ones.
Request:
{
"jsonrpc": "2.0",
"result": {
]
},
}
Source
CMaintenance::update() in ui/include/classes/api/services/CMaintenance.php.