Policy

Create

Create a policy.

post/api/v1/policies

Request body

descriptionstring

The description of the new policy.

displayNamestring required

The display name of the new policy.

policyStepsobject

Step sequences for this policy. The map must include a baseline entry keyed by the lowercased policy type (e.g., "grant"). Additional entries with opaque keys can be added for conditional routing via the rules array.

policyType'POLICY_TYPE_UNSPECIFIED' | 'POLICY_TYPE_GRANT' | 'POLICY_TYPE_REVOKE' | 'POLICY_TYPE_CERTIFY' | 'POLICY_TYPE_ACCESS_REQUEST' | 'POLICY_TYPE_PROVISION'

The type of policy to create (grant, revoke, or certify).

reassignTasksToDelegatesboolean

This field is no longer used. Configure delegate reassignment in the policy step instead.

Response

The CreatePolicyResponse message contains the created policy object.

Changes