Snapshots

Recover from an uploaded snapshot (collection)

POST
Recovers local collection data from an uploaded snapshot. This will overwrite any collection data stored on the node. If the collection does not exist, it will be created.

Path parameters

collection_namestringRequired
Name of the collection

Query parameters

waitbooleanOptional
If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
priorityenumOptional
Defines source of truth for snapshot recovery
Allowed values: no_syncsnapshotreplica
checksumstringOptional
Optional SHA256 checksum to verify snapshot integrity before recovery.

Request

This endpoint expects a multipart form containing an optional file.
snapshotoptional file

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
booleanOptional
POST
1curl -X POST http://localhost:6333/collections/collection_name/snapshots/upload \
2 -H "api-key: <apiKey>" \
3 -H "Content-Type: multipart/form-data" \
4 -F snapshot=@<file1>
200Successful
1{
2 "time": 1.1,
3 "status": "status",
4 "result": true
5}