Create a new policy

Creates a policy after validating bundles, groups, schedules, and roles.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
inGroups
array of objects
required

Target groups/schedules for this policy (at least one required). The policy will grant access to members of these groups or according to these schedules. To get group IDs, use GET /public/v1/directoryGroups. Schedule IDs are internal identifiers for on-call schedules configured in your system.

inGroups*
bundles
array of objects
required

Bundles to enforce with this policy (array of objects with 'id' UUID). To get bundle IDs, use GET /public/v1/bundles. Bundles are collections of roles that can be granted together.

bundles*
roles
array of objects
required

Roles to enforce with this policy (array of objects with 'id' UUID). To get role IDs, use GET /public/v1/roles?resourceId=. These are individual roles not part of a bundle.

roles*
number
required
≥ 1

Sorting order for policy execution priority (minimum 1). Policies with lower sortOrder values are evaluated first. If omitted, the policy is assigned the next available sortOrder.

Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

©2003-2026 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.