---
title: "PUT /index-documents"
method: PUT
path: "/index-documents"
tags: ["index"]
---

# PUT /index-documents

`PUT /index-documents`

## Request

- Base URL: `https://api.merqube.com`
- URL: `https://api.merqube.com/index-documents`
- Auth: none declared
- TypeScript: <https://skmtc.dev/merqube/apis/merqube-api/docs/index-documents/put.ts> (a function with typed inputs; its response is checked against the schema)

Upload a document for an index

## Query parameters

- `id` string
- `force_overwrite` boolean

## Request body `multipart/form-data`

- object
  - `document` string, binary

## Response `200`

OK status of upload

- object
  - `status` string

## Other responses

- `400`: Invalid multipart request, or file exists and requires overwrite flag.

---

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