Edit site file
edit_site_file(needs account token) Replaces one file on a live site, or adds it. Other files stay as they are. This is not a full folder Update. Restore undoes the last Update or Edit files save. site is the address. path is the file. content is the new text, or base64 when encoding is base64. A site token for that site works, including before the site is claimed, the same way an update with that token does. Without a token, claim the site first. Does not charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file to replace, or to add, for example index.html. | |
| site | Yes | The address of the site, for example myproject.dropthehassle.app. | |
| content | Yes | The new file. UTF-8 text, or standard base64 when encoding is base64. | |
| encoding | No | utf8 (default) or base64. |