---
title: Relations
slug: indexing-apis/relations
docTags: 
createdAt: 2024-07-05T12:05:12.133Z
---

Patching parent and category relations for a given product.&#x20;

:::CodeblockTabs
Request Body

```json
{
    "ITEM001": [
        {
            "op": "replace",
            "path": "/relations",
            "value": {
                "parentProduct": {
                    "values": [
                        "PARENT_PRODUCT_001"
                    ]
                },
                "categories": {
                    "values": [
                        "CAT001",
                        "CAT002"
                    ]
                }
            }
        }
    ]
}
```
:::

