Skip to main content
PATCH
Rename asset

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

asset_id
string
required

ID of the asset to rename. Get it from id in List assets.

app_id
string
required

ID of the app whose media library to change.

Body

application/json
file_name
string
required

New name of the file. Characters other than letters, digits, _, . and - become _, anything up to the last / is dropped, and an empty name becomes untitled.

Example:

"Logo-light.png"

Response

The renamed asset.

A file in the app's media library.

id
string
required

ID of the asset.

Example:

"68b0e1f2a3c4d5e6f7a8b9c0"

app_id
string
required

ID of the app the asset belongs to.

Example:

"6820f3a4e7b91d003c45a1f2"

file_name
string
required

Name of the file.

Example:

"Logo-dark.png"

file_url
string
required

URL of the file.

Example:

"https://media.base44.com/files/public/6820f3a4e7b91d003c45a1f2/Logo-dark.png"

source_type
enum<string>
required

How the file got into the library. upload for a file someone uploaded, and generated for most files Base44 created for the app, such as AI-generated images and videos or a Figma import.

Available options:
upload,
generated
Example:

"upload"

file_type
string | null
required

File extension without the dot, usually lowercase, such as png or mp4. The value is null when the file was added without one.

Example:

"png"

created_date
string
required

When the asset was added to the library, as a UTC timestamp in ISO 8601 format.

Example:

"2026-01-15T09:23:41"

updated_date
string
required

When the asset was last changed, such as renamed, as a UTC timestamp in ISO 8601 format.

Example:

"2026-01-15T09:31:07"