---
title: "Trigger reindexing of an export location"
method: POST
path: "/v1/export_locations/{export_location_id}/reindex/"
---

# Trigger reindexing of an export location

`POST /v1/export_locations/{export_location_id}/reindex/`

## Request

- Base URL: `https://app.iconik.io/API/files`
- URL: `https://app.iconik.io/API/files/v1/export_locations/{export_location_id}/reindex/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-files/docs/v1/export_locations/:export_location_id/reindex/post.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_reindex_export_locations

## Path parameters

- `export_location_id` string, required

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Request body

- ReindexExportLocationSchema
  - `sync_to_another_dc` boolean

## Response `201`

ID and status of the job

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `404`: ExportLocation doesn't exist
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-files.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-files/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-files/revisions/ed57d13791a2?raw)
