Document Generation

Change template metadata and fields by key

Changed on

Metadata and field changes by key; fields not named stay as they are. A field may be renamed, given another source and confirmed, but a field cannot be added: the places a template fills come from the Word file. Unknown field keys, a source of no known shape, and conditions that read themselves are refused with 422. With dry_run, the response is the template as it would be and nothing is stored. Requires a person at or above member behind the key.

patch/v1/doc-gen/templates/{id}

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Request body

DocGenUpdateTemplateRequest required
name, string
group, string nullable
kind, 'letter' | 'agreement' nullable
pair_template_id, string uuid nullable
version, string nullable
fields, DocGenFieldChange[]
dry_run, boolean

Response

The template after the change, or as it would be with dry_run.

DocGenUpdateTemplateResult required
dry_run, boolean
template, DocGenTemplate

Changes