Create or update rich item
PUT
/i/richItem/{businessId}/{sku}
Creates a new rich item or updates an existing rich item. To update the sku, set the new sku in the request body. The picture cannot be set using this method (use PATCH method).
Path parameters
-
businessId integer(int64) Required
The id of the business
-
sku string Required
A stock-keeping unit
Maximum length is
25
.
Body Required
-
businessId integer(int64) Required
The id of the business
-
sku string Required
A stock-keeping unit
Maximum length is
25
. -
allergenCodes array[string]
List of allergen codes
-
descriptions array[object]
Stores a description with its locale code
PUT /i/richItem/{businessId}/{sku}
curl \
-X PUT https://api.trial.lsk.lightspeed.app/i/richItem/454335871/UGG-BB-PUR-06 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"businessId":454335871,"sku":"UGG-BB-PUR-06","allergenCodes":["milk","cereals"],"descriptions":[{"localeCode":"en","description":"This is a test for a rich item","displayName":"Rich Item 1"},{"localeCode":"de","description":"Das ist ein Test","displayName":"Rich Item 1 DE"}]}'
Request example
{
"businessId": 454335871,
"sku": "UGG-BB-PUR-06",
"allergenCodes": [
"milk",
"cereals"
],
"descriptions": [
{
"localeCode": "en",
"description": "This is a test for a rich item",
"displayName": "Rich Item 1"
},
{
"localeCode": "de",
"description": "Das ist ein Test",
"displayName": "Rich Item 1 DE"
}
]
}