---
title: "Reactivate documents in a chat"
method: DELETE
path: "/chats/{chat_id}/inactive-documents"
tags: ["Chat"]
---

# Reactivate documents in a chat

`DELETE /chats/{chat_id}/inactive-documents`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/chats/{chat_id}/inactive-documents`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/chats/:chat_id/inactive-documents/delete.ts> (a function with typed inputs; its response is checked against the schema)

Re-include previously deactivated documents in the chat's retrieval context.

## Path parameters

- `chat_id` integer, required

## Query parameters

- `cookie_name` string, nullable

## Request body `application/x-www-form-urlencoded`

- BodyChatsRemoveInactiveDocuments
  - `document_ids` integer[], required

## Response `200`

Successful Response

- BulkResult
  - `count` integer, required: Number of rows affected.
  - `ids` integer[], required: IDs that were targeted by the operation.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: No access to this chat.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
