POST
/
{guru_slug}
/
data-sources
/
reindex
curl --request POST \
  --url https://api.gurubase.io/api/v1/{guru_slug}/data-sources/reindex/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "ids": [
    123
  ]
}'
{
    "msg": "Data sources reindexed successfully"
}

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

Path Parameters

guru_slug
string
required

The slug of the Guru to reindex data sources from

Body Parameters

ids
number[]
required

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

Response

msg
string

Status message for the operation

{
    "msg": "Data sources reindexed successfully"
}