Product Feed
Community Forum
Data Indexing
Storefront APIs
Template JS
Headless SDK
Klevu Magento v4
Klevu PHP SDK
Navigate through spaces
⌘
K
Introduction
XML API
JSON API
Overview
Authentication
Data Types
Settings
Partial Updates (Patch)
Job Tracking
Swagger/OpenAPI Specification
Examples
Errors
Changelogs
Data Feed
Docs powered by
Archbee
JSON API
...
Examples
Partial Updates (Patch)
Relations
1min
Patching parent and category relations for a given product.
Request Body
1
{
2
"ITEM001"
:
[
3
{
4
"op"
:
"replace"
,
5
"path"
:
"/relations"
,
6
"value"
:
{
7
"parentProduct"
:
{
8
"values"
:
[
9
"PARENT_PRODUCT_001"
10
]
11
}
,
12
"categories"
:
{
13
"values"
:
[
14
"CAT001"
,
15
"CAT002"
16
]
17
}
18
}
19
}
20
]
21
}
{ "ITEM001": [ { "op": "replace", "path": "/relations", "value": { "parentProduct": { "values": [ "PARENT_PRODUCT_001" ] }, "categories": { "values": [ "CAT001", "CAT002" ] } } } ] }
Updated 05 Jul 2024
Did this page help you?
PREVIOUS
Customer Groups
NEXT
Attributes
Docs powered by
Archbee
Docs powered by
Archbee