Edit in GitHubLog an issue
B2B feature. Learn more

updateRequisitionListItems mutation

The updateRequisitionListItems mutation updates products in a requisition list.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
updateRequisitionListItems(
requisitionListUid: ID!
requisitionListItems: [UpdateRequisitionListItemsInput!]!
) {
UpdateRequisitionListItemsOutput
}
}

Reference

The updateRequisitionListItems reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example updates the quantity of an item in a requisition list.

Request:

Copied to your clipboard
mutation {
updateRequisitionListItems(
requisitionListUid: "Mg==",
requisitionListItems: [
{
item_id: "Mw=="
quantity: 2
}
]
){
requisition_list {
uid
name
items_count
items {
items {
uid
quantity
product {
uid
name
sku
}
}
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"updateRequisitionListItems": {
"requisition_list": {
"uid": "Mg==",
"name": "Frequently Ordered Products",
"items_count": 1,
"items": {
"items": [
{
"uid": "Mw==",
"quantity": 2,
"product": {
"uid": "NTk2",
"name": "Logan HeatTec® Tee",
"sku": "MS10"
}
}
]
}
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.