This method allows to remove related objects from 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

    (object) Parameters containing the IDs of the hosts to update and the objects that should be removed.

    Examples

    Unlinking templates

    Unlink a template from two hosts and delete all of the templated entities.

    Request:

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "69665",
    5. "69666"
    6. },
    7. }

    Source

    CHost::massRemove() in ui/include/classes/api/services/CHost.php.