Application Insert
application_insertCreate a custom ThreatLocker application with a unique name, OS type, optional file rules, and a dry-run preview before sending the request.
Instructions
Create a custom application (POST Application/ApplicationInsert). Required: name (unique per OS type). os_type: 1=Windows (default), 2=Mac, 3=Linux (names accepted). Optional description and initial rules — each rule is a set of conditions (full_path / process_path / created_by / cert may be combined; hash or sha256 are standalone) plus notes. dry_run defaults to TRUE and returns the exact body without sending; pass dry_run=false to create. 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": {
"name": "<name>"
},
"name": "application_insert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name. | |
| rules | No | Optional initial file rules. | |
| 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. | |
| os_type | No | ||
| description | 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. |