> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CopyOutputTemplateCommandRequestInput

> Copies a template with its layouts and assignments, into the same or another template set of the same document type. Errors: 404 TEMPLATE_NOT_FOUND, TEMPLATE_SET_NOT_FOUND; 409 TEMPLATE_NAME_DUPLICATE; 422 OUTPUT_TEMPLATE_SET_DOCUMENT_TYPE_MISMATCH (the target set belongs to another document type). GraphQL only (new API rule). - Request



**Kind**: `input`

## Fields

**`templateId`**: `ID!` (required)

The ID of the template.

---

**`name`**: `String!` (required)

The name of the copy.

---

**`templateSetId`**: `ID`

The template set the copy goes to. Empty: the set of the original.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

