File Manager
Create or Update Application File or Folder
Creates or updates a file or folder for an application by its ID.
PUT
Create or Update Application File or Folder
The ID of the application to create or update the file or folder in. If the application belongs to a workspace, pass its ID in the
workspace_id query parameter.If the application belongs to a workspace, the workspace’s ID. Members with an Owner, Admin or Developer role can use the file manager on a workspace app they don’t own; without this, only the app’s own owner can.
The path where the file or folder will be created or updated. End with
/ to create a folder.Optional ISO timestamp of the file’s last known mtime, as returned by
GET /files/content. When provided and it doesn’t match the file’s current mtime on disk, the save is rejected with FILE_MODIFIED instead of silently overwriting a newer version — use this to detect edit conflicts. Omit it to save unconditionally.Set to
true to confirm that the change detaches an application that came from an open template (it stops receiving versions). Without it the request changes nothing and answers 409 TEMPLATE_DETACH_CONFIRMATION_REQUIRED. Ignored for other applications. See Detach from a template.Response
A success returns200 with { "response": null }.
Error Responses
The error code indicating the reason for failure. Possible values:
AUTH_TOKEN_MISSING,API_KEY_INVALID,SESSION_REVOKED: TheAuthorizationheader is missing, the API key is invalid, or the dashboard session was revoked (401).API_KEY_IP_DENIED,API_KEY_SCOPE_DENIED: The API key is used from an IP outside its allowlist, or it lacks the scope the route requires (403).ACCESS_DENIED: You are a workspace member without the permission for this action, or you did not send theworkspace_id(403).FORBIDDEN: The user does not have permission to access the application.APP_NOT_FOUND: The specified application was not found.PLAN_RESTRICTED_FEATURE: The user’s plan does not support file manager access.MISSING_PATH: The path query parameter was not provided.MISSING_CONTENT: The content body parameter is required for files.FILE_TOO_LARGE: The content is above the 10 MiB the file manager saves (413).details.max_byteshas the limit. Upload larger files with Upload Files.OPERATION_IN_PROGRESS: A snapshot of the application is being taken, or another operation is running on it (409). Try again in a few moments.INVALID_PATH: The provided path is invalid.TARGET_IS_DIRECTORY: The path already exists as a folder and can’t be written to as a file.FILE_MODIFIED: The file’s current mtime doesn’t match thelast_modifiedsent — someone else changed it since it was last read. Reload the file before saving again.PUT_FILE_FAILED: Failed to create or update the file or folder.OWNER_APP_WITHOUT_LIMITS: The owner’s plan limits could not be found.TEMPLATE_DETACH_CONFIRMATION_REQUIRED: The change would detach the application from its template andconfirm_detachwas not sent (409). Nothing was changed.
Last modified on November 20, 2026