Collections
Update existing items in 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<>
Array of items to update (maximum 100 items per request)
Items
1 <= items <= 100Response Body
application/json
curl -X PUT "https://api.bem.ai/v2/collections/items" \ -H "Content-Type: application/json" \ -d '{ "collectionName": "product_catalog", "items": [ { "collectionItemID": "clitm_2N6gH8ZKCmvb6BnFcGqhKJ98VzP", "data": "SKU-12345: Updated Industrial Widget - Premium Edition" }, { "collectionItemID": "clitm_3M7hI9ALDnwc7CoGdHriLK09WaQ", "data": { "sku": "SKU-67890", "name": "Updated Premium Gear", "category": "Hardware", "price": 399.99 } } ] }'{
"status": "pending",
"message": "Collection items are being updated asynchronously",
"eventID": "evt_3M7hI9ALDnwc7CoGdHriLK09WaQ"
}Empty
Empty
Empty