---
title: "Rename File"
method: PATCH
path: "/files/{file_id}/filename"
tags: ["files"]
---

# Rename File

`PATCH /files/{file_id}/filename`

## Request

- Base URL: `https://api.kobaltlabs.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kobaltlabs.com/files/{file_id}/filename`
- Auth: none declared

Rename any of the company's documents — internal or a vendor's.

What moves and what does not is in
`docs/subsystems/file-pipeline.md#renaming-a-document`.

## Path parameters

- `file_id` string, uuid, required

## Request body

- RenameFileRequest
  - `filename` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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