Skip to main content
POST
Create a new version of an existing policy. The new version is automatically set as the current version for the policy.
Creating a new version does not modify existing versions. All previous versions remain accessible and can be restored using the Set Current Version endpoint.

Path Parameters

Query Parameters

Request Body

Content Object

The content field accepts a JSON object with the following optional sections:

Authorizations

Authorization
string
header
required

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

Path Parameters

policy_id
string<uuid>
required

Query Parameters

organization_id
string<uuid>

Organization ID. This is required for access control. It can be provided via query or request body depending on the endpoint.

Body

application/json

Serializer for creating a new policy version

content
any
required
version_name
string

Version name (auto-generated if not provided)

Required string length: 1 - 255
base_version_id
string<uuid>
write-only

ID of the version this was derived from

Response

Policy version created successfully.

Serializer for creating a new policy version

id
string<uuid>
required
read-only
content
any
required
version_name
string

Version name (auto-generated if not provided)

Maximum string length: 255