templates

Promote Template Version

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.

post/v1/templates/{template_id}/promote

Path parameters

template_idstring required

Response

Successful Response

{"stackTrail":"paths:/v1/templates/{template_id}/promote:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.