POST
/
v1
/
buckets
/
{bucket_identifier}
/
batches
/
{batch_id}
/
objects
Add Objects to Batch
curl --request POST \
  --url https://api.mixpeek.com/v1/buckets/{bucket_identifier}/batches/{batch_id}/objects \
  --header 'Content-Type: application/json' \
  --data '{
  "object_ids": [
    "object_789",
    "object_101"
  ]
}'
{
  "batch_id": "batch_123",
  "bucket_id": "<string>",
  "status": "DRAFT",
  "object_ids": [
    "object_123",
    "object_456"
  ],
  "error": "Failed to process batch: Object not found",
  "type": "BUCKET",
  "manifest_key": "s3://bucket/manifest.json",
  "task_id": "task_123",
  "loaded_object_ids": [
    "<string>"
  ]
}

Headers

Authorization
string | null

Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings. Example: 'Bearer sk_1234567890abcdef'

X-Namespace
string | null

Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.

Path Parameters

bucket_identifier
string
required

The unique identifier of the bucket.

batch_id
string
required

The unique identifier of the batch.

Body

application/json

The request model for adding objects to an existing batch.

Response

200
application/json

Successful Response

The base model for a batch.