Skip to main content

updateDocumentTemplateConfig

Requires permission settings:documents:update.

Create or update the tenant document template config (style + branding + footer/terms + column visibility). Admin only.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateDocumentTemplateConfig($input: UpdateDocumentTemplateConfigInput!) {
updateDocumentTemplateConfig(input: $input) {
id
companyName
accentColor
companyAddress
documentType
footerText
}
}

Variables:

{
"input": {
"documentType": "string"
}
}

Response:

{
"data": {
"updateDocumentTemplateConfig": {
"id": "id",
"companyName": "string",
"accentColor": "string",
"companyAddress": "string",
"documentType": "string",
"footerText": "string"
}
}
}
updateDocumentTemplateConfig(
input: UpdateDocumentTemplateConfigInput!
): DocumentTemplateConfig!

Arguments​

updateDocumentTemplateConfig.input ● UpdateDocumentTemplateConfigInput! non-null input​

The fields of the document template config to change.

Type​

DocumentTemplateConfig object​

The organization's setup of one document template.