# patchPickingOrderItemData

Audience: Developer

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

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

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

## Arguments

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

## Returns

[PickingOrderItemOutput](https://docs.pyck.cloud/dev/api/types/pickingorderitemoutput.md)

## Example

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

```graphql
mutation PatchPickingOrderItemData($id: ID!, $patches: [JSONPatchInput!]!) {
  patchPickingOrderItemData(id: $id, patches: $patches) {
    eventCount
    pickingOrderItem {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      id
      orderID
      quantity
      sku
      tenantID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<picking order item id to patch>",
  "patches": [
    {
      "op": "REPLACE",
      "path": "/picked",
      "value": "true"
    },
    {
      "op": "REPLACE",
      "path": "/actual_qty",
      "value": "10"
    }
  ]
}
```
