Skip to main content
POST
Create an approval policy.

Authorizations

Authorization
string
header
required

WorkOS session access token (human dashboard sessions) on the control plane.

Headers

X-Spillway-Org
string<uuid>
Example:

"601c5d19-0b88-42f7-acda-d1d31abd100d"

Body

application/json
name
string
required
Required string length: 1 - 120
kind
string
required
Required string length: 1 - 60
definition
object
required
scopeType
string | null
Maximum string length: 30
scopeId
string<uuid> | null
enabled
boolean
default:true

Response

OK

Resource object.

{key}
any