Skip to main content
Use the application ID as appId in each call, or use the corresponding Application method. For ZIP archives, see uploadFile and downloadFile.

Local validation

All five methods require a non-blank string ID other than . or ... The SDK encodes the ID as a URL segment.

Methods

listFiles

GET /v1/apps/{appId}/files Pass optional path: string to list a directory or read a UTF-8 file. Omit it or pass path: "" to list the root. Pass the raw path and the SDK encodes the query parameter. Returns ApplicationFilesResponse.
An inaccessible app or path can return HTTP 404.

deleteFiles

DELETE /v1/apps/{appId}/files Pass files: string[] with 1–50 source paths. Returns DeleteFilesResponse, with separate arrays of successful and failed paths.

createFile

POST /v1/apps/{appId}/files/create Pass path: string (parent directory), name: string and isDirectory: boolean. For a file, content: string is required and may be empty. The SDK enforces a 1 MiB UTF-8 limit. For a directory, set isDirectory: true and omit content. Returns MessageResponse.

renameFile

PATCH /v1/apps/{appId}/files/rename Pass filePath: string (source path) and newName: string (one name in the same directory). Returns MessageResponse.

moveFiles

PATCH /v1/apps/{appId}/files/move Pass filePath: string[] with 1–50 source paths and pathTarget: string for the destination directory. Use / for the root. Returns MessageResponse.