Create Object
This endpoint creates a new object in the specified bucket. The object must conform to the bucket's schema.
**Processing**: By default, objects are created in DRAFT status and require
batch submission for processing. Set `auto_process=true` to automatically
create a batch and submit it for processing (zero-touch workflow).
If the bucket has a unique_key configured, the insertion policy determines behavior:
- insert: Create only. Fail with 409 Conflict if unique key exists.
- update: Update only. Fail with 404 Not Found if unique key doesn't exist.
- upsert: Create if new, update if exists (idempotent).
Policy resolution:
1. Use ?policy= query parameter if provided
2. Fall back to bucket's default_policy if configured
3. Error 400 if neither is specified
Path parameters
The unique identifier of the bucket.
The unique identifier of the bucket.
Query parameters
Insertion policy for unique key enforcement. Valid values: 'insert', 'update', 'upsert'. Only applies if bucket has unique_key configured. Overrides bucket's default_policy if provided.
Insertion policy for unique key enforcement. Valid values: 'insert', 'update', 'upsert'. Only applies if bucket has unique_key configured. Overrides bucket's default_policy if provided.
Automatically create a batch and submit it for processing. When true, the object will be immediately queued for processing without requiring separate batch creation and submission calls. Ideal for onboarding and single-object workflows.
Automatically create a batch and submit it for processing. When true, the object will be immediately queued for processing without requiring separate batch creation and submission calls. Ideal for onboarding and single-object workflows.
Request body
Example request
{
"blobs": [
{
"data": {
"num_pages": 5,
"title": "Service Agreement 2024"
},
"key_prefix": "/contract-2024/content.pdf",
"metadata": {
"author": "John Doe",
"department": "Legal"
},
"property": "content",
"type": "json"
},
{
"data": {
"filename": "https://example.com/images/smartphone-x1.jpg",
"mime_type": "image/jpeg"
},
"key_prefix": "/contract-2024/thumbnail.jpg",
"metadata": {
"height": 300,
"width": 200
},
"property": "thumbnail",
"type": "image"
}
],
"category": "contracts",
"key_prefix": "/documents",
"title": "Service Agreement 2024",
"year": 2024
}Response
Successful Response
Example response
{
"blobs": [
{
"blob_id": "blob_1",
"data": {
"num_pages": 5,
"title": "Service Agreement 2024"
},
"key_prefix": "/contract-2024/content.pdf",
"metadata": {
"author": "John Doe",
"department": "Legal"
},
"property": "content",
"type": "PDF"
}
],
"bucket_id": "bkt_9xy8z7",
"content_hash": "28a9f5e8...",
"created_at": "2024-10-21T10:30:00Z",
"key_prefix": "/contract-2024",
"metadata": {
"category": "contracts",
"year": 2024
},
"object_id": "obj_123abc456def",
"skip_duplicates": false,
"status": "DRAFT",
"updated_at": "2024-10-21T10:30:00Z"
}Changes
Changed in 4 of the 31 revisions of this API.22
- ○
added the new optional request property
blobs/items/checksumnew-optional-request-property
- ○
- ●
added the new
signalsenum value to thesource_details/items/typeresponse property for the response status200response-property-enum-value-added
- ●
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
DEACTIVATEDenum value to thestatusresponse property for the response status200response-property-enum-value-added
- ●