# Reindex a resource

Canonical page: https://docs.ovok.com/primitives/reindex-resource

Reindex a stored resource to rebuild its searchable fields. This operates on one resource ID at a time and does not change the resource's clinical content.

| Method | Path |
| --- | --- |
| `POST` | `/fhir/R4/:type/:id/$reindex` |

## Request [#request]

```bash
curl --request POST \
  --url "https://api.sandbox.ovok.com/fhir/R4/Patient/${PATIENT_ID}/\$reindex" \
  --header "Authorization: Bearer ${OVOK_TOKEN}"
```

| Path value | Description |
| --- | --- |
| `:type` | FHIR resource type. |
| `:id` | ID of the stored resource to reindex. |

## Response [#response]

| HTTP status | Meaning |
| --- | --- |
| `200 OK` | Reindex request completed. The operation has no response resource body. |
| `404 Not Found` | The resource does not exist or is not visible to the caller. |

The path includes both the resource type and ID: `/fhir/R4/:type/:id/$reindex`.
