Update Store
PUT/v1/stores/{store_identifier}
Authorization
Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
Path Parameters
The ID or name of the store
Request Body
New name for the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).
Constraints
New description
Constraints
Whether the store can be accessed by anyone with valid login credentials
License for public stores
Optional expiration policy
Optional metadata key-value pairs
New tags for the store, replacing the current ones. Send an empty list to clear. Tags are trimmed, lowercased and deduplicated.
Response Body
Unique identifier for the store
Name of the store. Can only contain lowercase letters, numbers, periods (.), and hyphens (-).
Constraints
Detailed description of the store's purpose and contents
Constraints
falseWhether the store can be accessed by anyone with valid login credentials
License for public stores
Additional metadata associated with the store
Tags for organizing stores
Optional expiration policy
Status of a store.
Possible values
expiredin_progresscompletedTimestamp when the store was created
Timestamp when the store was last updated
Timestamp when the store was last used
0Total storage usage in bytes
0Total storage usage in tokens
Optional expiration timestamp for the store
storeType of the object
from mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
store = mxbai.stores.update(
store_identifier="my-knowledge-base",
name="updated-knowledge-base",
description="Updated product documentation and FAQs",
metadata={"version": "2.0"},
)
print(store){
"id": "vs_abc123",
"object": "store",
"name": "updated-knowledge-base",
"description": "Updated product documentation and FAQs",
"is_public": false,
"metadata": {
"version": "2.0"
},
"tags": [],
"config": {
"contextualization": {
"with_metadata": false,
"with_file_context": false
}
},
"file_counts": {
"in_progress": 0,
"completed": 5,
"failed": 0,
"cancelled": 0,
"pending": 0,
"total": 5
},
"status": "completed",
"usage_bytes": 1048576,
"usage_tokens": 51200,
"expires_after": null,
"expires_at": null,
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T15:00:00.000Z",
"last_active_at": "2025-01-15T15:00:00.000Z"
}