Skip to main content
POST
CreatePolicy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request for a call to PolicyService_CreatePolicy to create a new policy.

The request for a call to PolicyService_CreatePolicy to create a new policy.

name
string
required
configuration
PolicyConfiguration represents the configuration and rules for a policy. Expects a string containing a policy in the Cedar format https://docs.cedarpolicy.com/policies/syntax-policy.html · object
required
description
string
versionNotes
string

Response

A successful response.

The response of a call to PolicyService_CreatePolicy.

policy
object
required