Collections
Add new items to a Collection
Authorization
API Key x-api-key<token>
Authenticate using API Key in request header
In: header
Request Body
application/json
collectionName*string
The name/path of the collection. Must use only letters, digits, underscores, and dots. Each segment must start with a letter or underscore.
items*
Array of items to add (maximum 100 items per request)
Items
1 <= items <= 100Response Body
application/json
curl -X POST "https://api.bem.ai/v2/collections/items" \ -H "Content-Type: application/json" \ -d '{ "collectionName": "product_catalog", "items": [ { "data": "SKU-12345: Industrial Widget" }, { "data": "SKU-67890: Premium Gear" } ] }'{
"status": "pending",
"message": "Collection items are being processed asynchronously",
"eventID": "evt_2N6gH8ZKCmvb6BnFcGqhKJ98VzP"
}Empty
Empty
Empty