# patchInventoryItemMovementData

Audience: Developer

Apply RFC 6902 JSON Patch operations to the item movement's data field.

Apply RFC 6902 JSON Patch operations to the item movement's data field.

**Served by:** [inventory](https://docs.pyck.cloud/api/services/inventory.md)

## Arguments

| Name | Type |
| --- | --- |
| `id` | ID! |
| `patches` | \[[JSONPatchInput](https://docs.pyck.cloud/api/inputs/jsonpatchinput.md)!\]! |

## Returns

[InventoryItemMovementOutput](https://docs.pyck.cloud/api/types/inventoryitemmovementoutput.md)

## Example

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

```graphql
mutation PatchInventoryItemMovementData($id: ID!, $patches: [JSONPatchInput!]!) {
  patchInventoryItemMovementData(id: $id, patches: $patches) {
    eventCount
    inventoryItemMovement {
      blockedBy
      collectionID
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      executed
      executedAt
      fromID
      handler
      id
      itemID
      orderID
      position
      quantity
      tenantID
      toID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

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