For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
      • Playground
          • MUTproductUpload
          • MUTproductAnonUpload
          • MUTupdateAccountSettings
          • MUTupdateCustomerAccountSettings
          • MUTinvoicePdf
          • MUTinvoicesExport
          • MUTinvoiceCreateBcCart
          • MUTinvoiceFinishBcPayment
          • MUTcreateOrder
          • MUTshoppingListsCreate
          • MUTshoppingListsUpdate
          • MUTshoppingListsDelete
          • MUTshoppingListsDuplicate
          • MUTshoppingListsItemsCreate
          • MUTshoppingListsItemsUpdate
          • MUTshoppingListsItemsDelete
          • MUTcustomerShoppingListsCreate
          • MUTcustomerShoppingListsUpdate
          • MUTcustomerShoppingListsDelete
          • MUTcustomerShoppingListsDuplicate
          • MUTcustomerShoppingListsItemsCreate
          • MUTcustomerShoppingListsItemsUpdate
          • MUTcustomerShoppingListsItemsDelete
          • MUTquoteCreate
          • MUTquoteUpdate
          • MUTquoteCheckout
          • MUTquoteOrdered
          • MUTquoteEmail
          • MUTquotePdfExport
          • MUTquoteAttachFileDelete
          • MUTquoteAttachFileCreate
          • MUTquoteFrontendPdf
          • MUTsuperAdminBeginMasquerade
          • MUTsuperAdminEndMasquerade
          • MUTcompanyCreate
          • MUTlogin
          • MUTcheckoutLogin
          • MUTauthorization
          • MUTuserCreate
          • MUTuserUpdate
          • MUTuserDelete
          • MUTstoreFrontToken
          • MUTcustomerCreate
          • MUTcustomerSubscribersCreate
          • MUTuserMasqueradingCompanyBegin
          • MUTuserMasqueradingCompanyEnd
          • MUTaddressCreate
          • MUTaddressUpdate
          • MUTaddressDelete
          • MUTcustomerAddressCreate
          • MUTcustomerAddressUpdate
          • MUTcustomerAddressDelete
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLB2BMutations

customerShoppingListsItemsUpdate

Example Query
1mutation ExampleMutation($itemData: ShoppingListsItemsUpdateInputType, $itemId: Int, $shoppingListId: Int) {
2 customerShoppingListsItemsUpdate(itemData: $itemData, itemId: $itemId, shoppingListId: $shoppingListId) {
3 shoppingListsItem {
4 id
5 createdAt
6 updatedAt
7 productId
8 variantId
9 quantity
10 optionList
11 productName
12 itemId
13 baseSku
14 }
15 }
16}
Variables
1{
2 "itemData": {
3 "variantId": 0,
4 "quantity": "ProductQuantity",
5 "optionList": [
6 {
7 "optionId": "example",
8 "optionValue": "GenericScalar"
9 }
10 ],
11 "sortOrder": 0,
12 "productNote": "example"
13 },
14 "itemId": 0,
15 "shoppingListId": 0
16}
Example response
1{
2 "data": {
3 "customerShoppingListsItemsUpdate": {
4 "shoppingListsItem": {
5 "id": "example",
6 "createdAt": 0,
7 "updatedAt": 0,
8 "productId": 0,
9 "variantId": 0,
10 "quantity": 0,
11 "optionList": "GenericScalar",
12 "productName": "example",
13 "itemId": 0,
14 "baseSku": "example"
15 }
16 }
17 }
18}
Update shopping lists items. Requires a BC Token.
Was this page helpful?
Previous

customerShoppingListsItemsCreate

Next

customerShoppingListsItemsDelete

Built with

Arguments

itemDataShoppingListsItemsUpdateInputTypeRequired
The item details. This field is required.
itemIdIntegerRequired
Shopping list item ID field. This field is required.
shoppingListIdIntegerRequired
Shopping list ID field. This field is required.

Returns

an optional CustomerShoppingListsItemsUpdate
shoppingListsItemShoppingListItem