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": [
{
"id": "<string>",
"name": "<string>",
"parentId": "bneEmHKG2yUe",
"globalId": "CAT-12345",
"metadata": {
"associatedProducts": 100,
"description": "All drinks available in the marketplace.",
"globalName": "Beers",
"path": "Driks/Alcoholic/Beers",
"showInStore": true
}
}
]
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}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": [
{
"id": "<string>",
"name": "<string>",
"parentId": "bneEmHKG2yUe",
"globalId": "CAT-12345",
"metadata": {
"associatedProducts": 100,
"description": "All drinks available in the marketplace.",
"globalName": "Beers",
"path": "Driks/Alcoholic/Beers",
"showInStore": true
}
}
]
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}A valid API key generated in Topsort's UI.
Categories to upsert. New categories will be created, and existing ones will be fully replaced with the provided data.
1 - 500 elementsAfficher attributs enfants
Successful Response
Cette page vous a-t-elle été utile ?