Snapshots

Create a snapshot (shard)

POST
Creates a new snapshot of a shard from a collection.

Path parameters

collection_namestringRequired
Name of the collection for which to create a snapshot
shard_idintegerRequired
Id of the shard

Query parameters

waitbooleanOptional
If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
objectOptional
POST
1curl -X POST http://localhost:6333/collections/collection_name/shards/1/snapshots \
2 -H "api-key: <apiKey>"
200Successful
1{
2 "time": 1.1,
3 "status": "status",
4 "result": {
5 "name": "name",
6 "size": 1,
7 "creation_time": "creation_time",
8 "checksum": "checksum"
9 }
10}