Files
Save contents of a file to the site installation.
For a given site, save new content to existing file in the site installation.
put/v1/sites/{id}/files
Request
- Base URLhttps://api.rocket.net
- AuthHTTP bearer
Path parameters
idinteger required
ID of the Site you are interacting with
Example:8880000888
Request body
Example request
{
"file": "plugin.php",
"path": "wp-content/plugins",
"content": "<?php echo 'Hello, world!'; ?>"
}Response
OK
Example response
{
"success": true,
"errors": [],
"messages": [],
"result": {
"success": true,
"path": "wp-content/plugins"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.