Skip to content
Pyck docs

patchPickingOrderItemData

Since pyck v0.27.0

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

Served by: picking

Name Type Default Description
id ID!
patches [JSONPatchInput!]!

PickingOrderItemOutput

Applies RFC 6902 JSON Patch operations to the picking order item’s data field. Only changed fields are modified; untouched fields are preserved.

mutation PatchPickingOrderItemData($id: ID!, $patches: [JSONPatchInput!]!) {
patchPickingOrderItemData(id: $id, patches: $patches) {
eventCount
pickingOrderItem {
createdAt
createdBy
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
orderID
quantity
sku
tenantID
updatedAt
updatedBy
}
transactionID
}
}

Variables

{
"id": "<picking order item id to patch>",
"patches": [
{
"op": "REPLACE",
"path": "/picked",
"value": "true"
},
{
"op": "REPLACE",
"path": "/actual_qty",
"value": "10"
}
]
}