Policy Update
policy_updateUpdates an Allowlisting policy's name, description, enabled state, scope, applications, action, log action, or order through read-modify-write; review the dry run before executing, then deploy.
Instructions
Update an Allowlisting policy: rename, description, enable/disable, applies-to, application list, action, log action or order. Does a read-modify-write: GET Policy/PolicyGetById, carry every existing setting over, apply the changes, then PUT Policy/PolicyUpdateById (the API resets any field that is omitted, so the full body is always sent). The dry run shows the merged body and which fields were carried over — review it before executing. applies_to: 'organization' or a group/computer GUID. action: permit | deny | permit_with_ringfencing (or 1/2/6). Run policies_deploy afterwards. dry_run defaults to TRUE. Writes target the configured default org unless organization_id is given explicitly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy_id": "<policy_id>"
},
"name": "policy_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| action | No | ||
| dry_run | No | Default true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute. | |
| order_by | No | ||
| policy_id | Yes | Policy GUID. | |
| applies_to | No | ||
| is_enabled | No | ||
| log_action | No | ||
| description | No | ||
| application_ids | No | ||
| organization_id | No | Target organization GUID for this write. Omit to target the server's configured default org (THREATLOCKER_ORG_ID). Any other org MUST be named explicitly here; write tools have no other org override. |