# patchReceivingInboundShipmentNotificationData

Audience: Programmer

Apply RFC 6902 JSON Patch operations to the receiving inbound shipment notification's data field.

Apply RFC 6902 JSON Patch operations to the receiving inbound shipment notification'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

[ReceivingInboundShipmentNotificationOutput](https://docs.pyck.cloud/latest/api/types/receivinginboundshipmentnotificationoutput.md)

## Example

Applies RFC 6902 JSON Patch operations to the receiving inbound shipment notification's data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.

```graphql
mutation PatchReceivingInboundShipmentNotificationData($id: ID!, $patches: [JSONPatchInput!]!) {
  patchReceivingInboundShipmentNotificationData(id: $id, patches: $patches) {
    eventCount
    receivingInboundShipmentNotification {
      createdAt
      createdBy
      data
      dataTypeID
      dataTypeSlug
      deletedAt
      deletedBy
      id
      inboundID
      tenantID
      updatedAt
      updatedBy
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<receiving inbound shipment notification id to patch>",
  "patches": [
    {
      "op": "REPLACE",
      "path": "/meta/name",
      "value": "\"PatchedNotification\""
    },
    {
      "op": "REPLACE",
      "path": "/sum",
      "value": "42"
    }
  ]
}
```
