---
title: "Re-index a document"
method: POST
path: "/v3/index/{name}/documents/{identifier}/re_index"
tags: ["Search & Match"]
---

# Re-index a document

`POST /v3/index/{name}/documents/{identifier}/re_index`

## Request

- Base URL: `https://api.affinda.com`
- URL: `https://api.affinda.com/v3/index/{name}/documents/{identifier}/re_index`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/affinda/apis/affinda-api-2/docs/v3/index/:name/documents/:identifier/re_index/post.ts> (a function with typed inputs; its response is checked against the schema)

Re-index a document.
This is relevant if you updated the document's data via the /annotations endpoint, and want to refresh
the document's data in the search index.

## Path parameters

- `name` string, required: Unique index name
- `identifier` string, required: A random string that uniquely identify the resource.

## Response `200`

Document successfully re-indexed

## Other responses

- `400`: Bad request. If it is a validation error will contain a list of each invalid field
- `401`: Authorisation error
- `default`: UnexpectedError

## Changes

- **2025-11-20** `978cf99a2ac0`: 2 info
  - api tag `Search & Match` added
  - api tag `Search & Match API - Indexing` removed
- **2024-06-12** `9b7d1081f5bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/affinda/apis/affinda-api-2/changes/v3/index/:name/documents/:identifier/re_index/post.md)

---

[API](https://skmtc.dev/affinda/apis/affinda-api-2.md) - [All operations](https://skmtc.dev/affinda/apis/affinda-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/affinda/apis/affinda-api-2/revisions/a180d9191a03?raw)
