Using the Category Tree API
This API required Authentication
Create a category tree
POST
/category-trees
Query Parameters
environment*
string
tenant*
string
fhrValidation
String
True/false. Enforces specific validation to comply with the Fredhopper data model
Headers
Authorization*
string
Bearer token
Request Body
categoryTree*
object
Category Tree
The root name can't be "0"
Category tree request example
Update a category tree
PUT
https://items.attraqt.io/category-trees/{name}
Path Parameters
name*
string
Category tree root name
Query Parameters
tenant*
String
environment*
String
fhrValidation
String
True/false. Enforces specific validation to comply with the Fredhopper data model
Headers
Authorization*
string
Bearer token containing the following permission:
Request Body
categoryTree*
object
List category trees
GET
https://items.attraqt.io/category-trees
Query Parameters
nameSearchPattern
string
tenant*
string
environment*
string
Headers
Authorization*
string
Bearer token
Get a category tree
GET
https://items.attraqt.io/category-trees/{name}/{version}
Path Parameters
version*
number
Version of the category tree
name*
string
Category tree root name
Query Parameters
tenant*
String
environment*
String
Headers
Authorization*
string
Bearer token containing the following permission:
Delete a category tree
DELETE
https://items.attraqt.io/category-trees/{name}/{version}
Path Parameters
version*
number
Version of the category tree
name*
string
Category tree root name
Query Parameters
tenant*
String
environment*
String
Headers
Authorization*
string
Bearer token containing the following permission:
Api errors
CATEGORY_TREE_NAME
Name is invalid
CATEGORY_TREE_LOCALE
Category tree contain a invalid locale or localized name
CATEGORY_TREE_LEAF
Category tree contain a invalid leaf or leaf name
CATEGORY_TREE_DELETION_USE
CategoryTree is currently used in a Catalog
CATEGORY_TREE_ALREADY_EXISTS
The category tree already exists, use update method
CATEGORY_TREE_NOT_FOUND
Impossible to update the category tree: category tree not exists
Last updated
Was this helpful?