Skip to main content
POST
cURL

Authorizations

X-API-KEY
string
header
required

API key authentication. Get your API key from the Formal console.

Body

application/json

Exactly one of these fields is required: group_name or user_email.

id
string
Minimum string length: 1
name
string
Minimum string length: 1
description
string
Minimum string length: 1
code
string
notification
enum<string> | null
Available options:
none,
consumer,
owners,
all
status
enum<string>
Available options:
draft,
dry-run,
active
terminationProtection
boolean
groupName
string

One of the discriminated union fields - use exactly one

userEmail
string

One of the discriminated union fields - use exactly one

Response

Success

policy
policy · object