patchInventoryCollectionMovementData
Since pyck v0.27.0
Apply RFC 6902 JSON Patch operations to the collection movement’s data field.
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
id |
ID! | ||
patches |
[JSONPatchInput!]! |
Returns
Section titled “Returns”UpdateCollectionMovementOutput
Example
Section titled “Example”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\"" } ]}