Copy a store
Copy a store into a new store with the given name.
The copy keeps every file, its metadata and its indexed chunks, without re-parsing or re-embedding anything. It runs in the background: both stores report the progress in copy_state, and the new store's status is in_progress until the copy completes. Neither store accepts file changes while the copy runs, and the source must have no files still being processed.
Args: store_identifier: The ID or name of the store to copy. params: The name of the copy and optional description and metadata overrides.
Returns: Store: The new store.
Path parameters
The ID or name of the store to copy
Request body
Example request
{
"name": "technical-documentation-copy"
}Response
The new store; its contents arrive in the background
Example response
{
"id": "1b8b486e-16d0-400b-8868-04cd75217a7e",
"name": "customer-support-kb",
"description": "Contains customer support articles and FAQs",
"metadata": {
"category": "support",
"language": "en"
},
"tags": [
"production",
"docs"
],
"file_counts": {
"pending": 5,
"in_progress": 5,
"cancelled": 2,
"completed": 42,
"failed": 1,
"total": 50
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"usage_bytes": 1024000,
"usage_tokens": 1024000,
"expires_at": "2024-01-01T00:00:00Z"
}Changes
Changed in 2 of the 30 revisions of this API.3
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
- ○