Device Actions

POST {{cb_url}}/appservices/v6/orgs/{{cb_org_key}}/device_actions

The device actions endpoint allows you to create and execute an action on devices.

API request is common for all device actions. POST request body will change for each device action.

RBAC Permissions Required

Permission (.notation name)Operation(s)Action Type
device.quarantineEXECUTEQUARANTINE
device.bypassEXECUTEBYPASS
device.bg-scanEXECUTEBACKGROUND_SCAN
device.policyUPDATEUPDATE_POLICY
org.kitsEXECUTEUPDATESENSORVERSION
device.deregisteredDELETEDEREGISTER_SENSOR
device.uninstallEXECUTEDELETE_SENSOR

The device actions endpoint allows you to create and execute an action on devices. - API request is common for all device actions. - POST request body will change for each device action.

Request Body Schema

FieldDescriptionDefaultRequired
action_typeAction to perform on selected devices. Allowed values: BACKGROUND_SCAN, BYPASS, UNINSTALL_SENSOR, DELETE_SENSOR, QUARANTINE, UPDATE_POLICY, UPDATE_SENSOR_VERSIONN/AYes
device_idList of devices to perform action onN/AYes - either device_id or search
searchA device search. Device actions will be performed on the result set of this searchN/AYes - either device_id or search
options.policy_idDevices will be updated to this policy IDN/ARequired if actiontype is set to `UPDATEPOLICY`
options.sensor_versionDevices will be updated to this sensor versionN/ARequired if actiontype is set to `UPDATESENSOR_VERSION`
options.toggleDetermines whether to toggle action ON or OFF. Allowed values: ON, OFFN/ARequired if actiontype is set to QUARANTINE, BYPASS, or `BACKGROUNDSCAN`.

See Documentation

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring