PUT
/
public
/
v1
/
catalog-search-service
/
catalogs
/
categories
Upsert Categories
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.

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Body

application/json

Response

204

Successful Response