Create or republish a template at a slug
Idempotent companion to POST /v1/templates. The URL slug is canonical
(any slug in the body is ignored). If the template does not exist it is
created and version 1 published (201). If it exists, a new version
(n+1) is published and becomes current (200). Existing renders pin
their own version and are unaffected.
Authorizations
Project API key (ck_live_… or ck_test_…) presented as a bearer token.
For embed partner endpoints this is the partner secret key, which is the
same credential type.
Path Parameters
The template slug (canonical identifier within the project).
Body
Create/upsert body. manifest and pageConfig are validated against the
shared schema package; layout is an optional explicit CanvasDocument.
1 - 120Optional on create (auto-derived from name); ignored by PUT (URL is canonical).
120^[a-z0-9]+(?:-[a-z0-9]+)*$280Optional CanvasDocument contentJson; synthesized from the manifest when omitted.