curl --request PUT \
--url https://api.topsort.com/public/v1/catalog-search-service/catalogs/categories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"categories": [
{
"globalId": "CAT-12345",
"id": "ahEDqV5uhjj8",
"metadata": {
"associatedProducts": 100,
"description": "All drinks available in the marketplace.",
"globalName": "Beers",
"path": "Driks/Alcoholic/Beers",
"showInStore": true
},
"name": "Beers/Belgian",
"parentId": "bneEmHKG2yUe"
}
]
}'
This response does not have an example.
Create or replace one or more categories in the catalog.
curl --request PUT \
--url https://api.topsort.com/public/v1/catalog-search-service/catalogs/categories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"categories": [
{
"globalId": "CAT-12345",
"id": "ahEDqV5uhjj8",
"metadata": {
"associatedProducts": 100,
"description": "All drinks available in the marketplace.",
"globalName": "Beers",
"path": "Driks/Alcoholic/Beers",
"showInStore": true
},
"name": "Beers/Belgian",
"parentId": "bneEmHKG2yUe"
}
]
}'
This response does not have an example.
A valid API key generated in Topsort's UI.
Successful Response