Link to the product relation types documentation
Get the current product relation types from your Emporix tenant:
curl --location 'https://api.emporix.io/configuration/<tenant_name>/configurations/relation_types' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XXX'
Add new relation types:
curl --location --request PUT 'https://api.emporix.io/configuration/<tenant_name>/configurations/relation_types' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XXX'
--data '{
"key": "relation_types",
"value": "[{\"id\":\"CONSUMABLE\"},{\"id\":\"ACCESSORY\"},{\"id\":\"YOU-MIGHT-LIKE-THIS\"},{\"id\":\"SUGGESTED-RELATED-ITEMS\"},{\"id\":\"SIMILAR-ITEMS\"},{\"id\":\"SPARE-PART\"}]",
"version": 2,
"secured": false
}'