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.policiesUPDATE
external-device.enforceUPDATE

See Documentation

[
    {
        "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

{&quot;results&quot;:[{&quot;id&quot;:&quot;07b64fc9-633b-39b4-a905-16eb021f376a&quot;,&quot;policy_id&quot;:&quot;12345678&quot;,&quot;created_at&quot;:&quot;2023-12-11T21:49:00Z&quot;,&quot;updated_at&quot;:&quot;2023-12-11T22:22:02Z&quot;,&quot;windows&quot;:{&quot;approved_devices&quot;:{&quot;allow_write&quot;:false,&quot;allow_execute&quot;:true}}}]}