---
title: "Truncate and reload data"
method: PUT
path: "/_fabric/{fabric}/_api/collection/{collection-name}/reload"
tags: ["Collections"]
---

# Truncate and reload data

`PUT /_fabric/{fabric}/_api/collection/{collection-name}/reload`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/collection/:collection-name/reload/put.ts> (a function with typed inputs; its response is checked against the schema)

Truncate the collection and reload data from source connection.

## Path parameters

- `fabric` string, required
- `collection-name` string, required

## Response `200`

Successfully reloaded collection.

- ResponseBase
  - `error` boolean, required
  - `code` integer

## Other responses

- `401`: Failed to authenticate the request.
- `404`: Failed to find specified collection.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
