Skip to content

patchInventoryCollectionMovementData

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

Served by: inventory

Name Type
id ID!
patches [JSONPatchInput!]!

UpdateCollectionMovementOutput

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

mutation PatchInventoryCollectionMovementData($id: ID!, $patches: [JSONPatchInput!]!) {
patchInventoryCollectionMovementData(id: $id, patches: $patches) {
eventCount
inventoryCollection {
createdAt
createdBy
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
handler
id
tenantID
updatedAt
updatedBy
}
transactionID
}
}

Variables

{
"id": "<collection movement id to patch>",
"patches": [
{
"op": "REPLACE",
"path": "/note",
"value": "\"Updated via patch\""
}
]
}