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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update Item Modifier Lists

> Updates the [CatalogModifierList](entity:CatalogModifierList) objects that apply to the targeted [CatalogItem](entity:CatalogItem) without having to perform an upsert on the entire item.

`square.updateItemModifierLists` updates the [CatalogModifierList](entity:CatalogModifierList) objects that apply to the targeted [CatalogItem](entity:CatalogItem) without having to perform an upsert on the entire item.

## Example

```ts automations/square-update-item-modifier-lists.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Update Square Item Modifier Lists", () => {
  onDashboardRun({ title: "Update Square Item Modifier Lists" })

  square.updateItemModifierLists({
    itemIds: ["H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6"],
    modifierListsToEnable: [
      "H42BRLUJ5KTZTTMPVSLFAACQ",
      "2JXOBJIHCWBQ4NZ3RIXQGJA6",
    ],
    modifierListsToDisable: ["7WRC16CJZDVLSNDQ35PP6YAD"],
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `ITEMS_WRITE`.

| Field                    | Type               | Required | Default | Description                                                                                                                                                             |
| ------------------------ | ------------------ | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `itemIds`                | `string[]`         | Yes      | —       | The IDs of the catalog items associated with the CatalogModifierList objects being updated.                                                                             |
| `modifierListsToEnable`  | `string[] \| null` | No       | —       | The IDs of the CatalogModifierList objects to enable for the CatalogItem. At least one of `modifier_lists_to_enable` or `modifier_lists_to_disable` must be specified.  |
| `modifierListsToDisable` | `string[] \| null` | No       | —       | The IDs of the CatalogModifierList objects to disable for the CatalogItem. At least one of `modifier_lists_to_enable` or `modifier_lists_to_disable` must be specified. |

Use the official [UpdateItemModifierLists reference](https://developer.squareup.com/reference/square/catalog-api/update-item-modifier-lists) for provider field semantics and limits.

## Output

Returns the official `Square.UpdateItemModifierListsResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
