# patchInventoryItemSetData

Audience: Developer

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

Apply RFC 6902 JSON Patch operations to the item set'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

[InventoryItemSetOutput](https://docs.pyck.cloud/api/types/inventoryitemsetoutput.md)

## Example

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

```graphql
mutation PatchInventoryItemSetData($id: ID!, $patches: [JSONPatchInput!]!) {
  patchInventoryItemSetData(id: $id, patches: $patches) {
    eventCount
    inventoryItemSet {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      id
      sku
      tenantID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<item set id to patch>",
  "patches": [
    {
      "op": "REPLACE",
      "path": "/category",
      "value": "\"promotion\""
    }
  ]
}
```
