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
| Field | Type | Required | Description |
|---|
| templateId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| payload | JsonElement | Optional | |
| version | integer | Optional | |
Response
| Field | Type | Description |
|---|
| version | integer | |
| blocks | UpdateDocumentTemplatePayloadResponseBlockInfo[]| null | |
UpdateDocumentTemplatePayloadResponseBlockInfo
| Field | Type | Description |
|---|
| blockId | string| null | |
| error | UpdateDocumentTemplatePayloadResponseErrorInfo| null | |
UpdateDocumentTemplatePayloadResponseErrorInfo
| Field | Type | Description |
|---|
| path | string| null | |
| usage | string| null | |
| label | string| null | |
| reason | string| null | |