---
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/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

---

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