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
Request
- Base URLhttps://api.roxels.ai (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
template_idstring required
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.