Skip to main content
PUT
Write a file into a running computer.

Authorizations

Authorization
string
header
required

Vers API key (VERS_API_KEY) sent as Authorization: Bearer <key>.

Path Parameters

computer_id
string<uuid>
required

Computer identity

Query Parameters

path
string

Destination path on the computer; required for the binary contract.

mode
integer<int32>

File mode (e.g. 0644). Defaults to 0644 if omitted.

Required range: x >= 0
create_dirs
boolean

Create parent directories if they don't exist.

Body

Request body for the JSON/base64 file-write contract.

content_b64
string
required

Base64-encoded file contents.

path
string
required

Destination path on the VM.

create_dirs
boolean

Create parent directories if they don't exist.

mode
integer<int32>

File mode (e.g. 0644). Defaults to 0644 if omitted.

Required range: x >= 0

Response

File written