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

# personalizedInsertTemplateCreate

> Create a personalized insert template. PERSONALIZED_INSERTS_NOT_ENABLED (403) until Redo turns on personalized inserts for the store and its terms are accepted in the app; PERSONALIZED_INSERT_TEMPLATE_NAME_TAKEN (400) when no numbered name up to ` (99)` is free. NOT_FOUND (404) when `copyFromTemplateId` names no template in the store.

**Required scopes:** [`shipping_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-shipping_write)

**Store must have one of:** `OMS`, `WMS`

## Arguments

**input** `[PersonalizedInsertTemplateCreateInput!](/docs/api-reference/v3/reference/shipping/personalized-insert-template-create-input)` *required*

The template to create.

**fields**

**blocks** `[\[JSON!\]](/docs/api-reference/v3/reference/common/json)`

The insert's blocks; pass with `globalSettings`. The store's brand kit colors and logo are applied, as for the app's pre-built templates. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

**copyFromTemplateId** `ID`

A template to copy the design of.

**globalSettings** `[JSON](/docs/api-reference/v3/reference/common/json)`

Page layout, background and default font; pass with `blocks`. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

**name** `String!` *required*

The template's name. When the store already has one by that name, ` (1)`, ` (2)` and so on is added.

## Returns

**personalizedInsertTemplateCreate** `[PersonalizedInsertTemplate!](/docs/api-reference/v3/reference/shipping/personalized-insert-template)` *required*

A personalized insert template from the app's insert designer: the card printed into each package.

**fields**

**blocks** `[\[JSON!\]!](/docs/api-reference/v3/reference/common/json)` *required*

The blocks on the insert, as the designer saves them. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the template was created.

**globalSettings** `[JSON!](/docs/api-reference/v3/reference/common/json)` *required*

Page layout, background and default font, as the designer saves them. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

**id** `ID!` *required*

The template's id.

**lineItemFilter** `[JSON](/docs/api-reference/v3/reference/common/json)`

The conditions a line item must meet to get a page when `perLineItem` is true; null means every line item. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

**name** `String!` *required*

The template's name, unique in the store.

**perLineItem** `Boolean!` *required*

Whether it prints one page per eligible line item instead of one insert per shipment.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the template last changed.

## Example

```graphql theme={null}
mutation {
  personalizedInsertTemplateCreate(input: { ... }) {
    blocks
    createdAt
    globalSettings
    id
    lineItemFilter
    name
    perLineItem
    updatedAt
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.