Docs

Update Document Template Payload

PUT /document-templates/{templateId}/payload

PUT/document-templates/{templateId}/payload

Replaces a document template's payload (title, TipTap content, filter definitions) with the whole value sent. Needs an org token and Admin at the organization. version is the template version from DynamicDocs_GetDocumentTemplate; returns the new version. Entity typed filter defaults are cleared. A v1 data table is converted to a v2 one, and each new or changed table's paths are checked under the caller's organization access; blocks lists them, and a refused table (error, reason including UnconvertibleFilter) keeps its stored version or is left out while the rest saves. 409 with currentVersion when the version is stale; 404 for a BackOps global template or another org's; 400 for a malformed payload. An Organization template's tables are checked at organization scope, and an Area filter or event token in its payload is a 400. templateId from DynamicDocs_GetDocumentTemplates.

Path Parameters

FieldTypeRequiredDescription
templateIduuidRequired

Request Body

FieldTypeRequiredDescription
payloadJsonElementOptional
versionintegerOptional

Response

FieldTypeDescription
versioninteger
blocksUpdateDocumentTemplatePayloadResponseBlockInfo[]| null

UpdateDocumentTemplatePayloadResponseBlockInfo

FieldTypeDescription
blockIdstring| null
errorUpdateDocumentTemplatePayloadResponseErrorInfo| null

UpdateDocumentTemplatePayloadResponseErrorInfo

FieldTypeDescription
pathstring| null
usagestring| null
labelstring| null
reasonstring| null