Using the Category Tree API

Create a category tree

POST /category-trees

Query Parameters

Name
Type
Description

environment*

string

tenant*

string

fhrValidation

String

True/false. Enforces specific validation to comply with the Fredhopper data model

Headers

Name
Type
Description

Authorization*

string

Bearer token

Request Body

Name
Type
Description

categoryTree*

object

Category Tree

{
    "version": 1
}
triangle-exclamation

Category tree request example

Update a category tree

PUT https://items.attraqt.io/category-trees/{name}

Path Parameters

Name
Type
Description

name*

string

Category tree root name

Query Parameters

Name
Type
Description

tenant*

String

environment*

String

fhrValidation

String

True/false. Enforces specific validation to comply with the Fredhopper data model

Headers

Name
Type
Description

Authorization*

string

Bearer token containing the following permission:

Request Body

Name
Type
Description

categoryTree*

object

List category trees

GET https://items.attraqt.io/category-trees

Query Parameters

Name
Type
Description

nameSearchPattern

string

tenant*

string

environment*

string

Headers

Name
Type
Description

Authorization*

string

Bearer token

Get a category tree

GET https://items.attraqt.io/category-trees/{name}/{version}

Path Parameters

Name
Type
Description

version*

number

Version of the category tree

name*

string

Category tree root name

Query Parameters

Name
Type
Description

tenant*

String

environment*

String

Headers

Name
Type
Description

Authorization*

string

Bearer token containing the following permission:

Delete a category tree

DELETE https://items.attraqt.io/category-trees/{name}/{version}

Path Parameters

Name
Type
Description

version*

number

Version of the category tree

name*

string

Category tree root name

Query Parameters

Name
Type
Description

tenant*

String

environment*

String

Headers

Name
Type
Description

Authorization*

string

Bearer token containing the following permission:

Api errors

Error category
Description

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