Skip to Content
SeyloDocs

Compress files

POST
/api/v1/files.archive

Packs files and folders into a .tar.gz or .zip archive inside the same volume.

Needs files.write on the service (a grant on its project covers it). Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
volume*string
Length1 <= length <= 64
nodeId?string

Panel-issued id.

Match^[a-z0-9]{16}$
paths*array<>
Items1 <= items <= 1000
destination*string

Relative to the volume root; "" or "." is the root.

Lengthlength <= 4096
format?|
Default"tar.gz"

Response Body

Success.

application/json
  1. response
nodeId*string

Panel-issued id.

Match^[a-z0-9]{16}$
info*
Example Request
curl -X POST 'https://example.com/api/v1/files.archive' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string",  "volume": "string",  "paths": [    "string"  ],  "destination": "string"}'
Example Response
{  "nodeId": "string",  "info": {    "name": "string",    "path": "string",    "isDir": true,    "size": 0,    "mode": 0,    "modifiedAt": "2019-08-24T14:15:22Z",    "symlinkTarget": "string",    "uid": 0,    "gid": 0  }}