Studio Apps
editStudioAppFile
Edit Studio App File
Surgically edit one file in a Studio app by find-and-replace: patch it in place instead of re-uploading the whole file.
Arguments
appIdstringrequiredThe Studio app IDexpectedCountnumberoptionalWhen set, oldString must occur EXACTLY this many times and ALL occurrences are replaced. Omit to require a single unique match.newStringstringrequiredThe replacement text.oldStringstringrequiredThe exact current text to replace. Must match verbatim (whitespace included) and: unless expectedCount is set: occur exactly once.pathstringrequiredThe file path within the app to edit (e.g. 'index.html', 'style.css', 'app.js')requestIdstringoptionalOptional idempotency/trace key, echoed on coded errors. NOTE: a patch is not blindly retryable: once it lands, re-sending fails to match.
Returns
On zero matches or an ambiguous over-match the tool changes NOTHING and returns a precise error (the match count + surrounding context) so you can extend oldString or set expectedCount: it never…
Ask for it
The Cloud routes these requests to this verb.
- change X to Y in index.html
- fix the typo in app.js
- update the hero heading
- swap the logo src
Pair it with
The verbs that finish the job.