Buckets
Create Bucket
Changed onThis endpoint allows you to create a new bucket with a defined schema. A bucket is a collection of objects that conform to the schema. The schema defines the structure and validation rules for objects in the bucket.
post/v1/buckets
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/buckets
- Auth: HTTP bearer and API key in header X-Namespace
Request body
Example request
{
"bucket_name": "product_images",
"bucket_schema": {
"properties": {
"image": {
"description": "Product image blob",
"type": "image"
},
"metadata": {
"description": "Product information",
"properties": {
"title": {
"type": "string"
},
"category": {
"type": "string"
},
"price": {
"type": "float"
}
},
"type": "object"
}
}
},
"description": "Product images with metadata for e-commerce",
"metadata": {
"department": "Sales",
"region": "US"
}
}Response
Successful Response
Example response
{
"unique_key": {
"default_policy": "upsert",
"description": "Single field, upsert by default (idempotent video ingestion)",
"fields": [
"video_id"
]
},
"ingest_filter": {
"retriever_id": "ret_ab12cd34ef56",
"retriever_version": 1,
"timeout_seconds": 30
}
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning