---
title: "Rename a document"
method: PATCH
path: "/documents/{document_id}"
tags: ["Documents"]
---

# Rename a document

`PATCH /documents/{document_id}`

## Request

- Base URL: `https://app.jitprompt.com`
- URL: `https://app.jitprompt.com/documents/{document_id}`
- Auth: HTTP bearer

Change the title. Does not re-ingest; `null` clears it.

## Path parameters

- `document_id` string, required

## Request body

- TitlePatch
  - `title` string, nullable

## Response `200`

Successful Response

- Document
  - `id` string, uuid, required
  - `namespace_id` string, uuid, required
  - `title` string, nullable, required
  - `summary` string, nullable, required
  - `source_name` string, required
  - `status` 'pending' | 'parsing' | 'structuring' | 'embedding' | 'ready' | 'failed', required
  - `error` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `section_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jitprompt/apis/jitprompt-api.md) · [All operations](https://skmtc.dev/jitprompt/apis/jitprompt-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jitprompt/apis/jitprompt-api/revisions/394bd8fb9f92?raw)
