Skip to main content
PUT
agent.files.write(path, data)

Authorizations

Authorization
string
header
required

An API key, or a session token on its own session

Path Parameters

id
string
required

The agent's ID

Pattern: ^agt_[0-7][0-9a-hjkmnp-tv-z]{25}$
path
string
required

A path relative to its root; it may contain slashes, which the services route as one parameter

Body

application/octet-stream

The body is of type file.

Response

The written entry

path
string
required
type
enum<string>
required
Available options:
file,
directory
size
integer
required
Required range: x >= 0
modifiedAt
string<date-time>
required

RFC 3339 in UTC with milliseconds.

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$