Skip to main content
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 collection
string
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 deny
number
default:"0"
Higher priority policies are evaluated first
object
JSON Logic condition to match the actor
object
JSON Logic condition to match request context

Response

Returns the created resource policy object.