documentTemplateCreate
Graphql fields and variables for the documentTemplateCreate mutation
Create a document template
Scope required: billing:write
For a complete list of input attributes see the DocumentTemplateAttributes type
mutation documentTemplateCreate ($attributes: DocumentTemplateAttributes!) {
documentTemplateCreate (attributes: $attributes) {
documentTemplate {
createdAt
description
font
id
lineHeight
name
pageSize
updatedAt
}
errors
}
}
Arguments
{
"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
errors
List (String)
Last updated
Was this helpful?