Resource Policies
Create Resource Policy
Create a new resource policy
POST
Request Body
string
Optional client-provided ID. Format:
policy_{uuidv7}string
required
ID of the scope where policy is defined
string
required
Display name for the policy
string
Description of what this policy does
object
required
Resource or collection to target
string
required
Target type:
resource or collectionstring
Resource ID (when kind is
resource)string
Collection ID (when kind is
collection)array
required
Actions this policy applies to. Use
["*"] for all actions.string
required
Policy effect:
allow or denynumber
default:"0"
Higher priority policies are evaluated first
object
JSON Logic condition to match the actor
object
JSON Logic condition to match request context