Zum Hauptinhalt springen

TemplateVersionSummary

One version without its content, as GET /templates/{id}/versions lists it.

idstring<uuid>required

The version's own id (a UUID).

numberintegerrequired

The version number, counting from 1 per template.

statusstringrequired

published for the version renders use by default, archived for a version that was published before, draft for one never published.

Possible values: [draft, published, archived]

checksumstringrequired

Checksum of the content; send it as base_checksum to save the next version conditionally.

change_notestringnullablerequired
source_file objectnullablerequired

Word and PowerPoint templates: the file of this version; download it from /templates/{id}/versions/{which}/file. Null for other kinds.

sha256stringrequired

Possible values: Value must match regular expression ^[0-9a-f]{64}$

bytesintegerrequired

Possible values: >= 1

formatstringrequired

Possible values: [docx, pptx]

created_atstring<date-time>required
published_atstring<date-time>nullablerequired

When the version was last published; null for a draft.

TemplateVersionSummary
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"number": 0,
"status": "draft",
"checksum": "string",
"change_note": "string",
"source_file": {
"sha256": "string",
"bytes": 0,
"format": "docx"
},
"created_at": "2024-07-29T15:51:28.071Z",
"published_at": "2024-07-29T15:51:28.071Z"
}