v1

latestOpenAPI 3.0.0Apache 2.02026-07-142008071.1 MB
Catalog

UpdateItemModifierLists

Updates the CatalogModifierList objects that apply to the targeted CatalogItem without having to perform an upsert on the entire item.

post/v2/catalog/update-item-modifier-lists

Request body

item_idsstring[] required

The IDs of the catalog items associated with the CatalogModifierList objects being updated.

modifier_lists_to_disablestring[]

The IDs of the CatalogModifierList objects to disable for the CatalogItem.

modifier_lists_to_enablestring[]

The IDs of the CatalogModifierList objects to enable for the CatalogItem.

Example request

{
  "request_body": {
    "item_ids": [
      "H42BRLUJ5KTZTTMPVSLFAACQ",
      "2JXOBJIHCWBQ4NZ3RIXQGJA6"
    ],
    "modifier_lists_to_disable": [
      "7WRC16CJZDVLSNDQ35PP6YAD"
    ],
    "modifier_lists_to_enable": [
      "H42BRLUJ5KTZTTMPVSLFAACQ",
      "2JXOBJIHCWBQ4NZ3RIXQGJA6"
    ]
  }
}

Response

Success

updated_atstring

The database timestamp of this update in RFC 3339 format, e.g., 2016-09-04T23:59:33.123Z.

Example response

{
  "updated_at": "2016-11-16T22:25:24.878Z"
}