Skip to main content
PUT
Create or update policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required

Body

multipart/form-data
payload
PolicyPutInput · object
required

Policy metadata in JSON format

Example:
policy_file
string | null

The YAML policy file to upload (max size: 10MB)

Response

Update Success

Response model for a policy

This represents the response structure when retrieving, creating or updating a policy.

name
string
required
description
string
required
created_by
string
required
created_at
number | null
last_modified_at
number | null
archived
boolean
default:false
versions
VersionedPolicy · object[]
events
PolicyEvent · object[]
consuming_envs
string[]
Last modified on June 18, 2026