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:
{
"jsonrpc": "2.0",
"result": {
"69665",
"69666"
},
}
Source
CHost::massRemove() in ui/include/classes/api/services/CHost.php.