Categories
Get All Categories
GET https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/trees/categoriesRequest
Returns a list of categories.
To get a specific category in a tree, provide a category ID.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
example
Response
List of categories.
Body
object | application/json
dataarray[object]
Get Category 12
Create Categories
POST https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/trees/categoriesRequest
Creates new categories.
Creating a category requires:
name
tree_id
orparent_id
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
Body
array | application/json
example
Response
Created
Body
object | application/json
dataarray[object]
Create Category 36
Update Categories
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/trees/categoriesRequest
Updates existing categories.
To update a specific category in a tree, provide a category id.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
Body
array | application/json
example
Response
OK
Body
object | application/json
example
Delete categories
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/trees/categoriesRequest
Deletes categories.
To delete a specific category in a tree, provide a category ID.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
example
Response
Categories are deleted
Body
object | application/json
example
Did you find what you were looking for?