JSON API 🆕
How to do (with examples)
Indexing attributes with multiple values
2min
There might be cases where you need to index certain attributes with multiple values.
PUT
Params
Header Parameters
X-KLEVU-AUTH-ALGO
required
String
This is the algorithm used to create the security bearer token.
X-KLEVU-TIMESTAMP
required
String
This should be your current time while generating the request. It is used to keep the request secured and discourage request relays.
X-KLEVU-APIKEY
required
String
This is the API Key of your store. Please refer to the Klevu Merchant Centre manual to understand where to get this key from.
Content-Type
required
String
This needs to be application/JSON as this request body contains a JSON.
Authorization
required
String
This is the generated security token that authenticates the request.
[
{
"id": "1",
"type": "KLEVU_PRODUCT",
"attributes": {
"name": {
"default": "Product 1"
},
"brand": "UCB",
"materials": [
"20% cotton",
"80% polyester"
]
}
}
]
Updated 05 Mar 2024
Did this page help you?