Files
Compress files or folders.
For a given site, compress a given files or folders.
post/v1/sites/{id}/files/compress
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
{
"sourcefiles": [
"file1.html",
"file2.jpg",
"file3.css"
],
"destfiles": "files.tar.gz",
"compress_type": "tar.gz"
}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.