patchReceivingInboundItemData
Apply RFC 6902 JSON Patch operations to the inbound item’s data field.
Served by: receiving
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 inbound item’s data field. Only changed fields are modified; untouched fields are preserved.
mutation PatchReceivingInboundItemData($id: ID!, $patches: [JSONPatchInput!]!) { patchReceivingInboundItemData(id: $id, patches: $patches) { eventCount receivingInboundItem { createdAt createdBy data dataTypeID dataTypeSlug deletedAt deletedBy id inboundID quantity sku tenantID updatedAt updatedBy } transactionID }}Variables
{ "id": "<inbound item id to patch>", "patches": [ { "op": "REPLACE", "path": "/inspected", "value": "true" }, { "op": "REPLACE", "path": "/condition", "value": "\"inspected-ok\"" } ]}