I want to assign multiple categories to a single product. Is this possible?
Hi Angelika,
Yes, you can assign products to multiple categories using the category assignment API.
Here’s the example request:
curl -i -X POST \
'https://api.emporix.io/category/saasdev2/categories/{categoryId}/assignments' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Version: v2' \
-d '{
"ref": {
"id": "1639265",
"type": "PRODUCT"
}
}'
To see more info, check the API documentation for Category Service - API Reference.