/v1/index/rebuildREAD / WRITERebuild all indexes
Synchronous, project-wide rebuild of every collection's index. Holds the write lock for its duration.
Project-wide and synchronous. This rebuilds every per-collection index and holds the write lock for its entire duration — no inserts, deletes, or metadata updates can commit while it runs. For a single collection, or for an asynchronous build that doesn't block writes, use Configure a collection's index instead.
Request body
indexstringoptionalIndex kind to rebuild to: brute, bruteforce, hnsw, ivf, bq,
auto, or mstg — a wider set than collection-level index
builds allow, since brute
and auto are project-wide selections, not buildable per-collection ANN
structures. Omit it to rebuild every collection's index at its current
kind.
Response fields
okbooleanrequiredtrue on success.
effectivestringrequiredThe index value from the request, or "rebuilt" when it was omitted.
recordsintegerrequiredLive record count after the rebuild.
Errors
| Status | code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
403 | forbidden | The key's scope doesn't include read_write. |
Related endpoints
- Configure a collection's index — single-collection, asynchronous
- Collection index state