Update Block

PUT {{cb_url}}/device_control/v3/orgs/{{cb_org_key}}/blocks/{{cb_device_control_id}}

Update a specific block, for example to change whether approved windows devices allow write or not.

RBAC Permissions Required

Permission (.notation name)Operation(s)
org.policiesUPDATE
external-device.enforceUPDATE

See Documentation

{
    "id": "<string>",
    "windows": {
        "approved_devices": {
            "allow_write": <boolean>,
            "allow_execute":<boolean>         }
    }
}

Request Body

{"id"=>"{{cb_device_control_id}}", "windows"=>{"approved_devices"=>{"allow_write"=>true, "allow_execute"=>false}}}

RESPONSES

status: OK

{&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-11T23:49:41Z&quot;,&quot;windows&quot;:{&quot;approved_devices&quot;:{&quot;allow_write&quot;:true,&quot;allow_execute&quot;:false}}}