documentTemplateCreate
Create a document template. The documentTemplateCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
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
}
}
ArgumentsLink to Arguments section
{
"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,
"name": "",
"twoColumns": true,
"editableInQuoteBuilder": true
}
]
}
}
| Name | Type | Description |
|---|---|---|
| attributes | DocumentTemplateAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| documentTemplate | DocumentTemplate | |
| errors | List (String) |