POST
/v1/templates/{id}/publishPublish the draft as a new version
Scope
templates.writeIdempotent with a keyPath parameters
idstringrequiredHeaders
Idempotency-Keystringmax length 255Up to 255 characters, scoped to the organisation and the endpoint, kept for 24 hours: a repeat with the same body replays the stored response with Idempotent-Replayed: true (API-004).
Body
sampleVariablesobjectsampleRecipientobject6 fields
namestringrequiredaddressLine1stringrequiredaddressLine2stringpostalCodestringrequiredcitystringrequiredcountrystringrequiredReturns
12 fields of the 201 answer
idstringrequirednumberintegerrequiredpublishedAtdate-timerequiredpublishedByTypeenumrequiredUSERAPI_KEYMCP_CONNECTIONpublishedByIdstringrequiredstaticLayerStatusenumrequiredPENDINGREADYFAILEDtemplateIdstringrequireddocumentobjectrequired6 fields
schemaVersionnumberrequiredproductobjectrequired7 fields
specificationIdstringrequiredmin length 1trimWidthMmnumberrequiredtrimHeightMmnumberrequiredbleedMmnumberrequiredmin 0safeZoneMmnumberrequiredmin 0pagingobject or null3 fields
minPagesintegerrequiredmin 1max 20maxPagesintegerrequiredmin 1max 20duplexbooleanrequiredfoldenum or nullsidepagesarray of objectsrequiredmin items 13 fields
idstringrequiredsidestringrequiredmin length 1max length 32elementsarray of one ofrequiredmax items 500colorsobjectrequiredfontsarray of objectsrequired3 fields
idstringrequiredmin length 1familystringrequiredmin length 1sourceenumrequiredcuratedorganisationgooglemetaobjectschemaVersionintegerrequiredvariableSchemaarray of objectsrequired13 fields
namestringrequiredtypeenumrequiredtextnumberdatedatetimebooleanimageUrlurllistrequiredbooleanrequiredkindenumWho fills the variable: `customer` per item (the default when absent) or `fixed` with the value the product sets.
customerfixedvaluestringThe value of a fixed variable. Left out when the product's base hides the variable from customers.
fallbackstringmaxLengthintegerformatstringlocaleenumnlentrueTextstringfalseTextstringdescriptionstringfieldsarray of objects6 fields
namestringrequiredtypeenumrequiredtextnumberdatedatetimebooleanimageUrlurlformatstringlocaleenumnlentrueTextstringfalseTextstringstaticElementIdsobjectrequiredwarningsarray of objectsrequired5 fields
codestringrequiredseverityenumrequirederrorwarningmessagestringrequiredpageIdstringelementIdstringResponses
201Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
404Not found
409A request with this Idempotency-Key is still in progress (idempotency_in_progress)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)