patchInventoryRepositoryMovementData
Apply RFC 6902 JSON Patch operations to the repository movement’s data field.
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
id |
ID! |
patches |
[JSONPatchInput!]! |
Returns
Section titled “Returns”InventoryRepositoryMovementOutput
Example
Section titled “Example”Applies RFC 6902 JSON Patch operations to the repository movement’s data field. Only changed fields are modified; untouched fields are preserved.
mutation PatchInventoryRepositoryMovementData($id: ID!, $patches: [JSONPatchInput!]!) { patchInventoryRepositoryMovementData(id: $id, patches: $patches) { eventCount inventoryRepositoryMovement { blockedBy collectionID createdAt createdBy data dataTypeID dataTypeSlug deletedAt deletedBy executed executedAt fromID handler id orderID position repositoryID tenantID toID updatedAt updatedBy } transactionID }}Variables
{ "id": "<repository movement id to patch>", "patches": [ { "op": "REPLACE", "path": "/note", "value": "\"Updated via patch\"" } ]}