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

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.net/affinda/apis/affinda-api-2.md) · [All operations](https://skmtc.net/affinda/apis/affinda-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/affinda/affinda-api-2/revisions/6772e50cb58e/schema)
