Skip to main content
POST
Upload a file with multipart form data or a raw request body

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Machine ID (e.g. mch_a1b2c3d4)

Query Parameters

path
string
required

File path inside the machine. Absolute paths may target valid machine locations such as /workspace, /data, /tmp, or /context where present. Relative paths resolve from the machine cwd when set, otherwise from the selected user's home when user is provided, otherwise from /workspace.

user
string

Optional machine user for relative-path resolution and ownership.

Body

file
file
required

Response

204

File uploaded