---
title: "Changes to Create policy version"
method: POST
path: "/v1/policies/{id}/versions"
---

# Changes to Create policy version

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

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 76 revisions.

- **2026-07-22** `8e0ceaf72e5b`: 2 warning, 1 info
- **2026-06-11** `a87e7c0c5c25`: 2 breaking, 1 warning
- **2026-06-04** `d7d0199d846f`: 1 info
- **2026-05-29** `5382c53ab431`: 1 info

## Changes

- **2026-07-22** `8e0ceaf72e5b`: 2 warning, 1 info
  - removed the request property `scriptKey`
  - removed the request property `version`
  - added the new optional request property `sourceVersionId`
- **2026-06-11** `a87e7c0c5c25`: 2 breaking, 1 warning
  - added the new required request property `scriptKey`
  - added the new required request property `version`
  - removed the request property `sourceVersionId`
- **2026-06-04** `d7d0199d846f`: 1 info
  - the endpoint scheme security `oauth2` was removed from the API
- **2026-05-29** `5382c53ab431`: 1 info
  - the endpoint scheme security `oauth2` was added to the API

---

[Operation](https://skmtc.dev/trycompai/apis/comp-ai-api/docs/v1/policies/:id/versions/post.md) - [API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) - [Page](https://skmtc.dev/trycompai/apis/comp-ai-api/changes/v1/policies/:id/versions/post)
