# patchReceivingInboundItemData

Audience: Programmer

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

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

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

## Arguments

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

## Returns

[ReceivingInboundItemOutput](https://docs.pyck.cloud/latest/api/types/receivinginbounditemoutput.md)

## Example

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

```graphql
mutation PatchReceivingInboundItemData($id: ID!, $patches: [JSONPatchInput!]!) {
  patchReceivingInboundItemData(id: $id, patches: $patches) {
    eventCount
    receivingInboundItem {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      id
      inboundID
      quantity
      sku
      tenantID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<inbound item id to patch>",
  "patches": [
    {
      "op": "REPLACE",
      "path": "/inspected",
      "value": "true"
    },
    {
      "op": "REPLACE",
      "path": "/condition",
      "value": "\"inspected-ok\""
    }
  ]
}
```
