Using the Catalog API
Last updated
Last updated
POST
/catalogs
tenant*
string
environment*
string
Authorization*
string
Bearer token containing the following permission:
catalog*
object
catalog
Remember! Catalog API can handle only 2 catalogs at the same time. If this limit is reached, one inactive catalog must be deleted by using the API before creating a new one. Determining the inactive catalog is done by listing all catalogs API.
In the standard usecase the catalog will contain one single category tree. However, based on the data model used the category tree might grow and get harder to manage. We consider category trees larger than 4 MB too large, and we recommend splitting the tree if this limit is approached.
DELETE
https://items.attraqt.io/catalogs/{version}
version*
integer
βVersion of catalog to delete.
tenant*
string
environment*
string
Authorization*
string
Bearer token containing the following permission:
Only Inactive catalogs can be deleted.
Attention: removing a catalog will delete items attached to this catalog, this operation can't be undone
POST
https://items.attraqt.io/catalogs/activate/{version}
version*
integer
βVersion of catalog to activate.
tenant*
string
environment*
string
minItemCount
integer
Authorization*
string
Bearer token containing the following permission:
GET
https://items.attraqt.io/catalogs/active
Get the catalog version currently promoted
tenant*
string
environment*
string
Authorization*
string
Bearer token containing the following permission:
GET
https://items.attraqt.io/catalogs
tenant*
string
environment*
string
Authorization*
string
Bearer token containing the following permission:
CATALOG_TENANT_ENV
Tenant and Environment are required
CATALOG_SCHEMAS
Error in given Item Schema
CATALOG_CATEGORY_TREES
Error in given Category tree
CATALOG_LIMIT_REACHED
The limit of 2 catalogs is reached
CATALOG_ALREADY_ACTIVE
The catalog is already active or in activation state
CATALOG_FHR_FAILED
Error in FHR api
CATALOG_NOT_ACTIVE
The catalog must be in activating state to perform the action
CATALOG_DELETION_ACTIVE
The catalog must be inactive to be deleted
The minimum number of items expected in this catalog activation. If the item processing pipeline detects less items than this number, then the catalog activation will fail. The feedback message in will indicate both this number and the detected number.