File Manager

Create or replace a file in an application

Writes the provided content to the given path. Writes to squarecloud.app / squarecloud.config are parsed as platform config (display name, description, memory, autorestart, subdomain) and trigger plan/quota validation.

Requires the workspace Maintainer or Administrator role (or ownership) when called against a workspace-shared application. Config rewrites are rate limited to 1 request every 15 seconds per user.

put/v2/apps/{appId}/files

Path parameters

appIdstring required

Application identifier. Optionally suffixed with -<workspaceId> to act on a workspace-shared application.

Request body

pathstring required

Absolute path to write inside the application.

Response

File written.

status'success' required

Changes

No recorded changes to this endpoint across all 1 revision of this API.