updateRequisitionList mutation
The updateRequisitionList
mutation updates the name and, optionally, the description of a requisition list.
Use the storeConfig query with the is_requisition_list_active
attribute to determine whether requisition lists are enabled.
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboardmutation {updateRequisitionList(requisitionListUid: ID!name: String!description: String) {updateRequisitionListOutput}}
Reference
The updateRequisitionList
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example renames the Frequently Ordered Products
requisition list and updates its description.
Request:
Copied to your clipboardmutation {updateRequisitionList(input:{name: "Frequently Ordered Essential Products"description: "Frequently ordered essential products list"}requisitionListUid: "Mw==") {requisition_list {uidnamedescription}}}
Response:
Copied to your clipboard{"data": {"updateRequisitionList": {"requisition_list": {"uid": "Mw==""name": "Frequently Ordered Essential Products""description": "Frequently ordered essential products list"}}}}