Skip to main content
PUT
Write (upload) a file to a running sandbox.

Authorizations

Authorization
string
header
required

Opaque instabox access token (1 hour). Refresh with /v1/auth/refresh (refresh token valid 30 days, rotates on use).

Path Parameters

id
string
required

Sandbox ID (m_ + 26 lowercase base32 characters).

Pattern: ^m_[a-z2-7]{26}$

Query Parameters

path
string
required

Absolute path of the file, at most 4096 bytes; not ending in "/".

mode
string

Octal permissions, for example 0755 (default an existing file's, else 0644).

Pattern: ^0?[0-7]{3}$
parents
boolean
default:false

Create missing parent directories (mkdir -p).

token
string

An upload URL's signed token; replaces the credential.

Body

application/octet-stream

The body is of type file.

Response

An existing file was replaced.

path
string
required

The file written, with symbolic links resolved.

size
integer<int64>
required

Bytes written.

sha256
string
required

Hex SHA-256 of the bytes the server received and wrote.

mode
string
required

Octal permissions, for example 0644.

created
boolean
required

The file is new (201); false when it replaced one (200).