Skip to main content
PUT
Upload a file tree

Authorizations

Authorization
string
header
required

A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

Path Parameters

id
string
required

The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.

Minimum string length: 1
Example:

"agent-atlas"

Query Parameters

path
string
required

Path inside the computer. A relative path is relative to /home/runtime, or to /home/runtime/app on a published site without a VM.

Minimum string length: 1
Example:

"/home/runtime/app.txt"

Body

application/x-tar

The body is of type file.

Response

The extracted file tree totals.

path
string
required
files
integer
required
Required range: x >= 0
dirs
integer
required
Required range: x >= 0
bytes
integer<int64>
required
Required range: x >= 0