# documentTemplateComponentCreate

Create a document template component

**Scope required:** billing:write

For a complete list of input attributes see the [DocumentTemplateComponentAttributes](https://docs.bunny.com/developer/api-reference/types/documenttemplatecomponentattributes) type

```graphql
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

```json
{
  "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 |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| attributes | [DocumentTemplateComponentAttributes](https://docs.bunny.com/developer/api-reference/types/documenttemplatecomponentattributes) |             |

## Response

| Name                      | Type                                                                                                        | Description |
| ------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| documentTemplateComponent | [DocumentTemplateComponent](https://docs.bunny.com/developer/api-reference/types/documenttemplatecomponent) |             |
| errors                    | List (String)                                                                                               |             |
