update_site_env
Replace a site's .env file with new content. Sends the complete file as a patch; read the file first to avoid losing data.
Instructions
Replace a site's .env file with the given content (full-file PATCH — send the complete file, not a diff). Read it first with get_site_env. Ploi applies the write asynchronously, so allow a few seconds before reading it back (an immediate get_site_env may 404 or show stale content).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | The ID of the server | |
| site_id | Yes | The ID of the site | |
| content | Yes | The full .env file content to write (replaces the existing file entirely) |