documentTemplateUpdate

Graphql fields and variables for the documentTemplateUpdate mutation

Update a document template

Scope required: billing:write

For a complete list of input attributes see the DocumentTemplateAttributes type

mutation documentTemplateUpdate ($id: ID!, $attributes: DocumentTemplateAttributes!) {
  documentTemplateUpdate (id: $id, attributes: $attributes) {
      documentTemplate {
        createdAt
        description
        font
        id
        lineHeight
        name
        pageSize
        updatedAt
      }
      errors
  }
}

Arguments

{
  "id": "456123",
  "attributes": {
    "name": "",
    "description": "",
    "pageSize": "",
    "font": "",
    "lineHeight": "",
    "components": [
      {
        "id": "456123",
        "documentTemplateId": "456123",
        "kind": "DocumentTemplateComponentKind",
        "content": "",
        "font": "",
        "fontSize": "",
        "fontWeight": "",
        "alignment": "",
        "width": "",
        "height": "",
        "lineSpacing": "",
        "imageScale": "",
        "color": "",
        "background": "",
        "position": 123,
        "imageSignedId": "",
        "skipPages": true,
        "paddingTop": 123,
        "paddingBottom": 123,
        "paddingLeft": 123,
        "paddingRight": 123,
        "marginTop": 123,
        "marginBottom": 123,
        "marginLeft": 123,
        "marginRight": 123,
        "twoColumns": true
      }
    ]
  }
}
Name
Type
Description

Response

Name
Type
Description

documentTemplate

errors

List (String)

Last updated

Was this helpful?