Create Policy
POST /v2/policies
User action signature required. See User Action Signing for more information.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Required Permissions
Name | Conditions |
---|---|
| Always Required |
Body
Property | Type / Optional | Description |
---|---|---|
| String | A name for the Policy. |
| String | The kind of activity that the policy will be evaluating and guarding. See Activities for all supported values. |
| Object | See Policy Rules for all supported rules. |
| Object | The action that will be taken if a policy is triggered. See Policy Actions for supported actions |
| Object | Reduces the scope on which the policy applies. See Policy Filters for supported filters |
Example
Response
Response example
Last updated