patchReplenishmentOrderItemData
Apply RFC 6902 JSON Patch operations to the replenishment order item’s data field.
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
id |
ID! |
patches |
[JSONPatchInput!]! |
Returns
Section titled “Returns”Example
Section titled “Example”Applies RFC 6902 JSON Patch operations to the replenishment order item’s data field. Only changed fields are modified; untouched fields are preserved.
mutation PatchReplenishmentOrderItemData($id: ID!, $patches: [JSONPatchInput!]!) { patchReplenishmentOrderItemData(id: $id, patches: $patches) { eventCount replenishmentOrderItem { createdAt createdBy data dataTypeID dataTypeSlug deletedAt deletedBy id quantity replenishmentOrderID sku tenantID updatedAt updatedBy } transactionID }}Variables
{ "id": "<replenishment order item id to patch>", "patches": [ { "op": "REPLACE", "path": "/received", "value": "true" } ]}