Share feedback
Answers are generated based on the documentation.

Schema

CreatePolicyRequest

Type: object

Fields required to create a new policy. Omitting cedar_v1 creates an allowlist_v0 policy with an empty rule set. Supplying cedar_v1 creates a Cedar:V1 policy; rules are embedded in the Cedar text rather than managed via the rules sub-resource.
cedar_v1

Schema: CedarV1Policy

name · required

Type: string

Policy name, unique within the organization.
All schema constraints and annotations
{
  "description": "Policy name, unique within the organization.",
  "examples": [
    "Security Research — hardened"
  ],
  "type": "string"
}
scope

Schema: Scope

All schema constraints and annotations
{
  "description": "Fields required to create a new policy. Omitting `cedar_v1` creates an `allowlist_v0` policy with an empty rule set. Supplying `cedar_v1` creates a Cedar:V1 policy; rules are embedded in the Cedar text rather than managed via the rules sub-resource.\n",
  "properties": {
    "cedar_v1": {
      "$ref": "#/components/schemas/CedarV1Policy"
    },
    "name": {
      "description": "Policy name, unique within the organization.",
      "examples": [
        "Security Research — hardened"
      ],
      "type": "string"
    },
    "scope": {
      "$ref": "#/components/schemas/Scope"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}