documentTemplateComponentCreate
Create a document template component. The documentTemplateComponentCreate 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 DocumentTemplateComponentAttributes type
mutation documentTemplateComponentCreate ($attributes: DocumentTemplateComponentAttributes!) {
documentTemplateComponentCreate (attributes: $attributes) {
documentTemplateComponent {
alignment
background
color
content
createdAt
documentTemplateId
editableInQuoteBuilder
font
fontSize
fontWeight
height
id
imageScale
imageSignedId
imageUrl
lineSpacing
marginBottom
marginLeft
marginRight
marginTop
name
paddingBottom
paddingLeft
paddingRight
paddingTop
position
skipPages
twoColumns
updatedAt
width
}
errors
}
}
ArgumentsLink to Arguments section
{
"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,
"name": "",
"twoColumns": true,
"editableInQuoteBuilder": true
}
}
| Name | Type | Description |
|---|---|---|
| attributes | DocumentTemplateComponentAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| documentTemplateComponent | DocumentTemplateComponent | |
| errors | List (String) |