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

# Set active policy version

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

Marks a version as the active (published) version and updates the policy content.

## Path parameters

- `id` string, required
- `versionId` string, required

## Headers

- `X-Organization-Id` string

## Response `200`

Active version updated

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

## Other responses

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

---

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