---
title: "Create policy version"
method: POST
path: "/v1/policies/{id}/versions"
tags: ["Policies"]
---

# Create policy version

`POST /v1/policies/{id}/versions`

Creates a new draft version of a policy, cloned from the current published version (or a specified source version). Use this when you need to make any change to a published policy — content edits, PDF attachments, anything. Published.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string

## Request body

- CreatePolicyVersionDto
  - `sourceVersionId` string — Optional version ID to base the new version on
  - `changelog` string — Optional changelog to associate with the new version

## Response `201`

Policy version created

- object
  - `versionId` string
  - `version` number

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Resource not found

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
