---
title: "Edit File Name"
method: PUT
path: "/api/v2/files/{file_id}"
tags: ["Files"]
---

# Edit File Name

`PUT /api/v2/files/{file_id}`

Edit the name of a file by its ID.

## Path parameters

- `file_id` string, uuid, required

## Query parameters

- `name` string, required

## Response `200`

Successful Response

- LangflowApiSchemasUploadFileResponse — File upload response schema.
  - `id` string, uuid, required
  - `name` string, required
  - `path` string, required
  - `provider` string, nullable
  - `size` integer, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-13** `acd160326a88` — 1 breaking
  - the `path` response's property type/format changed from `string`/`path` to `string`/`` for status `200`
- **2026-03-12** `830c31118215` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-03-06** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API
- **2026-02-18** `191b57fc530b` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was removed from the API
- **2026-02-10** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API

[Full history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v2/files/:file_id/put.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
