Bulk Create Blocks
POST {{cb_url}}/device_control/v3/orgs/{{cb_org_key}}/blocks/_bulk
Creates blocking rules by policy.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
org.policies | UPDATE |
external-device.enforce | UPDATE |
[
{
"policy_id": "<string>",
"windows": {
"approved_devices": {
"allow_write": <boolean>,
"allow_execute": <boolean>
}
}
}
]
Request Body
[{"policy_id"=>"String", "windows"=>{"approved_devices"=>{"allow_write"=>false, "allow_execute"=>false}}}]
RESPONSES
status: OK
{"results":[{"id":"07b64fc9-633b-39b4-a905-16eb021f376a","policy_id":"12345678","created_at":"2023-12-11T21:49:00Z","updated_at":"2023-12-11T22:22:02Z","windows":{"approved_devices":{"allow_write":false,"allow_execute":true}}}]}