> ## Documentation Index
> Fetch the complete documentation index at: https://support.paddypost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a file

Renames a file, changes its alt text or moves it.

> [!NOTE]
>
> Needs the Admin or Member role in the workspace.

**workspace** `string` *required*

The workspace UUID. Get it from [List workspaces](https://support.paddypost.com/api-reference/workspaces/list-workspaces.md).

**media** `string` *required*

The file UUID.

**name** `string`

The file name.

**alt\_text** `string`

Alt text, up to 1,000 characters.

**folder** `string`

A folder UUID, or null for the top level.

```json 200 theme={null}
{
  "success": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.