# copyPrintTemplate mutation


`copyPrintTemplate` is a GraphQL mutation of the Chameleoon MAX API. Send it as `POST https://max-api.chameleoon.sk/api/v1/graphql` with your API key, see [Chameleoon MAX](/chameleoon-max).

Copies a print template, or a MAX built-in template, under a new name. Call it to start a
template of your own from an existing one.

- The copy has the source's kind, language and body.
- The copy is never the default.
- Requires the `company.write` permission on an API key that no legal-entity scope narrows.

## Arguments

- `input`: [`CopyPrintTemplateInput!`](/chameleoon-max/type/copy-print-template-input) · required

## Returns

[`PrintTemplate!`](/chameleoon-max/type/print-template)

## Example

**Mutation**

```graphql
mutation copyPrintTemplate($input: CopyPrintTemplateInput!) {
  copyPrintTemplate(input: $input) {
    id
    kind
    syntax
    output
    language
    name
    isDefault
    bodyBytes
    body
    archivedAt
    createdAt
    updatedAt
  }
}
```

**Variables**

```json
{
  "input": {
    "name": "example"
  }
}
```

**Response**

```json
{
  "data": {
    "copyPrintTemplate": {
      "id": "00000000-0000-4000-8000-000000000001",
      "kind": "SALES_ORDER",
      "syntax": "JSON",
      "output": "PDF",
      "language": "example",
      "name": "example",
      "isDefault": true,
      "bodyBytes": 1,
      "body": "example",
      "archivedAt": "2026-01-01T00:00:00Z",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z"
    }
  }
}
```

Values are illustrative: replace IDs and codes with your own before you send the call.
