Skip to main content
POST
Create a policy

Authorizations

Authorization
string
header
required

An Igris API key. It acts with the current role and permission overrides of the member who created it.

Headers

Idempotency-Key
string

Any unique string. A repeat with the same key returns the first response.

Body

application/json
name
string
required
Required string length: 1 - 200
rules
object[]
required
Minimum array length: 1
description
string | null
Maximum string length: 500
enabled
boolean
default:true
connectionSlugs
string[] | null

Connection slugs

Minimum string length: 1
serverId
string | null
Minimum string length: 1

Response

The stored policy.

data
object

The stored policy row, as returned by POST and PATCH. It has createdByUserId and updatedByUserId instead of owner and lastEditedBy.