host.massupdate

    This method allows to simultaneously replace or remove related objects and update properties on multiple hosts.

    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

    Additionally to the , the method accepts the following parameters.

    (object) Returns an object containing the IDs of the updated hosts under the hostids property.

    Examples

    Enabling multiple hosts

    :

    Response:

    1. "jsonrpc": "2.0",
    2. "hostids": [
    3. "69665",
    4. "69666"
    5. ]
    6. },
    7. }

    Source