Skip to content
Pyck docs

patchReceivingInboundData

Since pyck v0.27.0

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

Served by: receiving

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

ReceivingInboundOutput

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

mutation PatchReceivingInboundData($id: ID!, $patches: [JSONPatchInput!]!) {
patchReceivingInboundData(id: $id, patches: $patches) {
eventCount
receivingInbound {
createdAt
createdBy
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
orderID
supplierID
tenantID
updatedAt
updatedBy
}
transactionID
}
}

Variables

{
"id": "<inbound id to patch>",
"patches": [
{
"op": "REPLACE",
"path": "/warehouse",
"value": "\"WH-B\""
},
{
"op": "ADD",
"path": "/tags/-",
"value": "\"urgent\""
}
]
}