Skip to main content
POST
Save an app file

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose code to change.

Body

application/json
file_path
string
required

Path of the file, relative to the app root.

content
string
required

Full contents to save. An empty string deletes the file, which is this endpoint's convention rather than a way to blank one.

Response

The app after the write.

An app in a workspace, limited to the properties the caller requested.

id
string | null

ID of the app.

Example:

"6820f3a4e7b91d003c45a1f2"

name
string | null

Display name of the app.

Example:

"My CRM"

slug
string | null

URL slug for the app, auto generated from the name and app ID or set to a custom value, or null if the app has no slug yet. The published URL is built from it.

Example:

"my-crm-3c45a1f2"

user_description
string | null

Description of the app, or null if none was set. On a newly created app this holds the original prompt text.

Example:

"A CRM to track leads and deals"

created_by
string | null

Email of the user who created the app.

Example:

"developer@example.com"

created_date
string<date-time> | null

Time the app was created, as a UTC timestamp in ISO 8601 format.

Example:

"2026-08-01T09:15:00"

updated_date
string<date-time> | null

Time the app document was last written, as a UTC timestamp in ISO 8601 format.

Example:

"2026-08-02T14:30:00"

status
AppStatusResponse · object | null

The app's current build status. Poll while a build is in progress to watch it finish. This tracks building, not publishing.

last_deployed_at
string<date-time> | null

Time the app was last published, as a UTC timestamp in ISO 8601 format, or null if it has never been published.

Example:

"2026-08-02T14:30:00"

screenshot_url
string | null

URL of a screenshot of the published app. Captured shortly after each publish, so it can briefly lag or be null right after publishing.

Example:

"https://storage.base44.com/screenshots/6820f3a4e7b91d003c45a1f2.png"

preview_screenshot_url
string | null

URL of a preview screenshot taken before publishing, distinct from screenshot_url, or null if none has been captured.

Example:

"https://storage.base44.com/previews/6820f3a4e7b91d003c45a1f2.png"