Actions21
- Organization Actions
- Computer Actions
- Application Actions
- Approval Request Actions
- Policy Actions
Policy → Create
AI-generatedSummary
Create a new policy in ThreatLocker by specifying its name, targeted computer group, associated applications, operating system type, and enforcement action, along with optional additional settings.
Inputs
- Name (required) — The name to assign to the new policy.
- Target ID (required) — The organization ID, computer group ID, or computer ID to which the policy will apply.
- Application IDs — JSON array of application IDs to associate with the policy.
- OS Type — The operating system type for the policy; options are Windows, macOS, Linux, or Windows XP. Defaults to Windows.
- Action — The policy enforcement action: Permit, Deny, or Permit with Ringfence. Defaults to Permit.
- Extra Settings (JSON) — Optional advanced JSON settings to merge into the policy create request.
- Header Overrides — Optional collection to override request headers, including managedOrganizationId to specify a different organization context than credentials.
Output shape
a single JSON object representing the created policy resource as returned by the ThreatLocker API
The output contains the API response for the newly created policy. If multiple items are input, each will produce a policy creation result returned as a JSON array.