---
title: "Promote Template Version"
method: POST
path: "/v1/templates/{template_id}/promote"
tags: ["templates"]
---

# Promote Template Version

`POST /v1/templates/{template_id}/promote`

Promote this version to is_active_version in its lineage.

Atomic: the previous active row is set to is_active=false in the same
transaction as the new one is set to is_active=true. The partial unique
index protects against races (two concurrent promotes would have one
fail with a unique-violation; safe).

In-flight sessions on the previous version stay on it — sessions pin to
a specific version row at session-start, not at promote-time.

## Path parameters

- `template_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
