v1
latestOpenAPI 3.1.02026-07-241765501.1 MBCollections
Create collection
🔐 This endpoint requires HTTP authentication (either Basic or Bearer). For authenticating with Bearer token, required scopes are: collections(w).
Create a collection.
post/v1/collections
Query parameters
keystring required
The key of the index to use.
Example:key_K2pX7vBnU0bgA5xp
sectionstring
The section of the index to use. Defaults to Products.
Example:Products
cstring
The ID of the client and version that the request is coming from, such as cio-js-2.90.
Example:cio-js-2.90
Request body
Example request
{
"id": "summer-sale",
"display_name": "Summer Sale",
"data": {
"key": "value"
},
"matches": [
{
"pattern": "summer sale"
}
],
"start_time": "2025-12-10T10:00:00",
"end_time": "2025-12-31T23:59:59",
"overridden_collection_id": "overridden-collection"
}Response
Created
Example response
{
"display_name": "Summer Sale",
"data": {
"key": "value"
},
"matches": [
{
"pattern": "summer sale"
}
]
}