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:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. ]
    5. },
    6. }

    Source

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