The fifth endpoint is also an important endpoint. Our search widget will use this one to generate category tree as filter. This is the endpoint to send your categories that will be used in our system to generate categories filter and suggestions. This is a bulk insert/update endpoint, so you can give multiple items at once (max 200 items at once to give best performance).
POST#
Header#
Field | Type | Description |
---|
x-token | String | token Users unique token |
Request Header Example#
Request Body#
Field | Type | Description |
---|
categories optional | Object[] | Categories |
catId | String | Unique id of the category |
name | String | Name of the category |
description | String | Description of the category |
count | Number | Total products in this category |
parentCatId | String | Id of the parent category, give string '0' if dont have parent |
Request Body Example#
Success 200#
Field | Type | Description |
---|
success | Boolean | Request was successful |
Success Response Example#