---
title: "Reindex lists"
method: PUT
path: "/xlist/reindex"
tags: ["multilist"]
---

# Reindex lists

`PUT /xlist/reindex`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/vivino/apis/the-rankdb-api/docs/xlist/reindex/put.ts> (a function with typed inputs; its response is checked against the schema)

Reindex lists.
If no lists, nor any search is specified all lists are reindexed.

Required security scopes:
  * `api:manage`

## Query parameters

- `errors_only` boolean

## Request body

- ListQL
  - `all_in_sets` string[]: Include all lists in these sets
  - `lists` string[]: Include lists that match exact list names
  - `match_metadata` object: Include lists that match all values in metadata

## Response `200`

OK

- RankdbResultlist: RankdbResultlist media type (default view)
  - `errors` object: Failed operations, indexed by list IDs
  - `success` object: Successful operations, indexed by list IDs

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/vivino/apis/the-rankdb-api.md) - [All operations](https://skmtc.dev/vivino/apis/the-rankdb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vivino/apis/the-rankdb-api/revisions/7a45b5309a11?raw)
