Skip to content

patchReplenishmentOrderItemData

Apply RFC 6902 JSON Patch operations to the replenishment order item’s data field.

Served by: inventory

Name Type
id ID!
patches [JSONPatchInput!]!

ReplenishmentOrderItemOutput

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"
}
]
}