Studio Apps
writeStudioAppFile
Write Studio App File
Create or overwrite a file in a Studio app.
Arguments
appIdstringrequiredThe Studio app IDcontentstringrequiredThe full file content as a UTF-8 string (max 1048576 bytes / 1 MB per text file). For images, use placeholder URLs: `src="placeholder://<name>"`: never invent inline SVG hero images or fake URLs.mimeTypestringoptionalOptional MIME type override. Inferred from the path extension if omitted.pathstringrequiredThe file path within the app (e.g. 'index.html', 'style.css', 'app.js')requestIdstringoptionalOptional idempotency key. Pass the SAME value to retry a failed write safely: the write is an idempotent (appId, path) overwrite. Echoed on coded errors.
Returns
The registry does not declare a return shape.
Ask for it
The Cloud routes these requests to this verb.
- create X file
- write a style.css for my X app
- save app.js to X
Pair it with
The verbs that finish the job.