# Refresh external collection

Submit a refresh of an external collection from its configured or supplied data source.

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/external-collections/refresh/

## Section links

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

`POST /v2/vectordb/jobs/external_collection/refresh`

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/external_collection/refresh' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${MILVUS_TOKEN}" \
  --data-raw '{
  "dbName": "default",
  "collectionName": "books"
}'
```

## Default request

```json
{
  "dbName": "default",
  "collectionName": "books"
}
```

## Sample response

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

## Request fields

- `dbName` string
  Database name. Operations on collections use default when omitted.
- `collectionName` string (required)
  Name of the collection.
- `externalSource` string
  URI identifying the external data source.
- `externalSpec` string
  Serialized JSON specifying the external storage format and options.

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