Upsert Category Trees
Upserts category trees.
This single endpoint updates and creates category trees. If a tree object contains an ID, it is processed as an update operation using that ID. If you do not provide an ID, a new tree is created. The category tree name field is required to create trees, but is not required on the update.
Usage Notes
- Channel ID in the
channelsfield is required to create a category tree. You can only assign a category tree to one channel. - The
channelsfield must be absent when updating a category tree. This field is currently unsupported during a category tree update.
Authentication
X-Auth-Tokenstring
OAuth scopes
Authentication header
Further reading
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.
Path parameters
store_hash
Permanent ID of the BigCommerce store.
Headers
Accept
The MIME type of the response body.
Request
This endpoint expects a list of objects.
id
name
channels
Response
Created a category tree.
data
meta
Response metadata.
Errors
403
Forbidden Error
422
Unprocessable Entity Error