Create a policy

View as Markdown
Create a new identity policy. Requires name, type, and status. Policies define access rules and can be associated with entitlements.

Authentication

X-Api-Keystring
API Key authentication via header

Headers

X-Workspace-IdstringOptional

Request

Request body for creating an identity policy via the public API
namestringRequired
Name of the policy
typeenumRequired
Allowed values:
statusenumRequired
Allowed values:
app_idlongRequired
ID of the identity resource app this policy belongs to
descriptionstringOptional
Description of the policy
conditionobjectOptional
approvalsobjectOptional
lifecycleobjectOptional
is_activebooleanOptional
Whether the policy is active
entitlementslist of longsOptional
List of entitlement IDs to associate with this policy
is_business_justification_requiredbooleanOptional
Whether business justification is required for requests under this policy

Response

Successful response