cURL
curl --request POST \ --url https://your-domain.com/api/client/v1/servers/{id}/files/compress \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "root": "/", "files": [ "<string>" ] } '
{ "ok": true, "archive": { "name": "<string>", "size": 123, "is_file": true, "is_directory": true, "is_symlink": true, "mime": "<string>", "mode": "<string>", "mode_bits": "<string>", "modified_at": "<string>", "created_at": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Server UUID.
1 - 100
Archive created
Show child attributes