Skip to content
Pyck docs

patchPickingOrderData

Since pyck v0.27.0

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

Served by: picking

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

PickingOrderOutput

Applies RFC 6902 JSON Patch operations to the picking order’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.

mutation PatchPickingOrderData($id: ID!, $patches: [JSONPatchInput!]!) {
patchPickingOrderData(id: $id, patches: $patches) {
eventCount
pickingOrder {
createdAt
createdBy
customerID
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
tenantID
updatedAt
updatedBy
}
transactionID
}
}

Variables

{
"id": "<picking order id to patch>",
"patches": [
{
"op": "REPLACE",
"path": "/zone",
"value": "\"Zone-C\""
},
{
"op": "REPLACE",
"path": "/priority",
"value": "5"
}
]
}