Approve a tent template
Mark the newest completed version as approved and usable to seed new tents. Requires at least one completed generation. Pass version as an optimistic-concurrency precondition; a mismatch with the newest completed version fails with 409 approval_version_stale. Approval works while a generation is running — it pins the latest already-completed version.
Authorizations
Workspace API key, e.g. Authorization: Bearer tented_.... Create keys in Workspace Settings → API Keys.
Path Parameters
Tent template ID.
Body
Expected current version.
x >= 1Response
Approved.
Full tent template object.
Tent template ID.
Internal display name.
Lifecycle state.
draft, approved Latest content version number.
How the template was created: upload for API- or hand-authored HTML, tent for templates created from an existing tent.
upload, tent Tent the template was created from, when source_type is tent.
Version that is approved, or null.
Number of content versions (equals current_version).
Creation time.
Last update.
Who created the template (API key name or user).
Status of the most recent AI generation, when one exists.
generating, completed, failed API path to fetch the latest HTML, e.g. /v1/tent-templates/{templateId}/content.