maintenance.update

    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 User roles for more information.

    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.

    Returns an object containing the IDs of the updated maintenances under the maintenanceids property.

    Examples

    Assigning different hosts

    Request:

    Response:

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

    Source

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