> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gurubase.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Reindex Data Sources

> Reindex one or more data sources

Reindex one or more data sources to update their content in your Guru. This is useful when the source content has changed.

> [!NOTE]
>
> For file and text sources (PDF, Word, Excel, and Text), reindex re-embeds the content Gurubase already extracted. The file is not re-fetched, so uploaded documents and Google Drive-synced documents behave the same way and no live source connection is required. To ingest a newer version of a file, upload the new version instead.

## Path Parameters

**guru\_slug** `string` *required*

The slug of the Guru to reindex data sources from

## Headers

**x-api-key** `string` *required*

Your API key for authentication. You can obtain your API key from the [Gurubase dashboard](https://app.gurubase.io/api-keys).

### Body Parameters

**ids** `number[]` *required*

Array of data source IDs to reindex (e.g., \[3271, 3272])

### Response

**msg** `string`

Status message for the operation

```json 200 theme={null}
{
    "msg": "Data sources reindexed successfully"
}
```

```json 400 theme={null}
{
    "msg": "Invalid request parameters"
}
```

```json 401 theme={null}
{
    "msg": "Invalid API key"
}
```

```json 429 theme={null}
{
    "msg": "Request was throttled. Expected available in 56 seconds."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.