documentTemplateComponentCreate

Graphql fields and variables for the documentTemplateComponentCreate mutation

Create a document template component

Scope required: billing:write

For a complete list of input attributes see the DocumentTemplateComponentAttributes type

mutation documentTemplateComponentCreate ($attributes: DocumentTemplateComponentAttributes!) {
  documentTemplateComponentCreate (attributes: $attributes) {
      documentTemplateComponent {
        alignment
        background
        color
        content
        createdAt
        documentTemplateId
        font
        fontSize
        fontWeight
        height
        id
        imageScale
        imageSignedId
        imageUrl
        lineSpacing
        marginBottom
        marginLeft
        marginRight
        marginTop
        paddingBottom
        paddingLeft
        paddingRight
        paddingTop
        position
        skipPages
        twoColumns
        updatedAt
        width
      }
      errors
  }
}

Arguments

{
  "attributes": {
    "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

documentTemplateComponent

errors

List (String)

Last updated

Was this helpful?