# Restore external snapshot

Start a restore using snapshot metadata in external storage.

SDK: `@zilliz/milvus2-sdk-node@3.0.10` · Tested with Milvus 3.0.6

Canonical documentation: https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/restore-external/

## Section links

- [cURL command](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/restore-external/#curl-command)
- [Default request](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/restore-external/#default-request)
- [Sample response](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/restore-external/#sample-response)
- [Request fields](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/restore-external/#request-fields)

`POST /v2/vectordb/jobs/snapshot/restore_external`

Replace `https://your-cluster.example.com` with your Milvus endpoint. Set `MILVUS_TOKEN` for authentication or omit the Authorization header on an unauthenticated cluster.

## cURL command

```bash
curl --request POST --url 'https://your-cluster.example.com/v2/vectordb/jobs/snapshot/restore_external' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${MILVUS_TOKEN}" \
  --data-raw '{
  "dbName": "default",
  "targetCollectionName": "books_restored",
  "snapshotMetadataURI": "s3://example-bucket/snapshots/books/manifest.json"
}'
```

## Default request

```json
{
  "dbName": "default",
  "targetCollectionName": "books_restored",
  "snapshotMetadataURI": "s3://example-bucket/snapshots/books/manifest.json"
}
```

## Sample response

```json
{
  "code": 0,
  "data": {
    "jobId": 123456789
  }
}
```

## Request fields

- `dbName` string
  Database name. Operations on collections use default when omitted.
- `targetCollectionName` string (required)
  Collection name to use for the restored data.
- `snapshotMetadataURI` string (required)
  URI of the exported snapshot metadata.
- `externalSpec` string
  Serialized JSON specifying the external storage format and options.

See [`HttpClient.restoreExternalSnapshot`](https://milvus-io.github.io/milvus-sdk-node/api-reference/http-client/#restoreexternalsnapshot) for the Node.js SDK method.
