Using the Items API
Upsert items
POST
https://items.attraqt.io/items
This endpoint allows you to create a modify a list of items.
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 |
---|---|---|
items* | array | List of items |
If a category tree has been defined for a catalogue version, the categories attribute becomes mandatory
Please keep the message size of each api call under 1MB for better performance
Patch items
PATCH
https://items.attraqt.io/items
This method allows you to patch attributes of given items.
\
Unlike the upsert, patch an item will only update attributes that are present in the request. It means that you don't need to send the whole item, but only the updated attributes.
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 |
---|---|---|
items* | array | List of items with attributes to patch |
Mandatory attributes aren't checked with this method. Only the attribute's types are validated.
Delete items
POST
https://items.attraqt.io/items/delete
This endpoint allows you to delete items.
Query Parameters
Name | Type | Description |
---|---|---|
tenant* | string | |
environment* | string |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer token containing the following permission: |
Request Body
Name | Type | Description |
---|---|---|
jsonItemIds* | array | List of jsonItemId |
Last updated