Skip to main content
POST
Save HTML directly

Authorizations

Authorization
string
header
required

Workspace API key, e.g. Authorization: Bearer tented_.... Create keys in Workspace Settings → API Keys.

Headers

Idempotency-Key
string

Optional idempotency key. Replaying a request with the same key returns the stored result of the first attempt. If the first attempt is still in flight, the replay fails with 409 idempotency_in_progress.

Path Parameters

templateId
string<uuid>
required

Tent template ID.

Body

application/json
code
string
required

Full replacement HTML document (1 byte – 2 MB).

Minimum string length: 1

Response

New version saved.

generation_id
string
required

Generation recorded for this save.

version
integer
required

New version number.