> ## 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.

# personalizedInsertTemplateUpdate

> Save a personalized insert template's design, as saving in the app does. When the design changes, Redo remakes the inserts already made from it in the background. PERSONALIZED_INSERT_TEMPLATE_NAME_TAKEN (409) when another template has the name.

**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

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

The template's id.

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

The design to save.

**fields**

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

The insert's blocks. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

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

Page layout, background and default font. Its JSON Schema is in `personalizedInsertTemplateJsonSchema`.

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

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

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

The template's name.

**perLineItem** `Boolean`

Whether to print one page per eligible line item. Omitted is off.

## Returns

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

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 {
  personalizedInsertTemplateUpdate(id: "...", input: { ... }) {
    blocks
    createdAt
    globalSettings
    id
    lineItemFilter
    name
    perLineItem
    updatedAt
  }
}
```


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