POST

Authorizations

x-api-key
string
header
required

Path Parameters

session_id
string
required

ID of the session (ses_ followed by 26 lowercase base32 characters). A session of another workspace, a deleted session and an unknown ID all answer 404 not_found_error without an error.code.

Body

application/json
file_id
string
required

ID of an uploaded file of the workspace (file_ ID).

type
string
required

Always file; other resource types cannot be added to a session.

Allowed value: "file"
mount_path
string | null

Where to mount the file: a clean absolute path, placed below /mnt/session/uploads/. Omit or send null for /mnt/session/uploads/<file_id>.

Response

Success.

An uploaded file mounted in a session.

id
string
required

ID of the resource (sesrsc_ followed by 26 lowercase base32 characters).

created_at
string
required

When the file was mounted (RFC 3339, UTC, up to microsecond precision).

file_id
string
required

ID of the mounted file (file_ ID).

mount_path
string
required

Where the file is mounted: /mnt/session/uploads/<file_id> by default, else the requested path below /mnt/session/uploads/.

type
string
required

Always file.

Allowed value: "file"
updated_at
string
required

When the resource last changed (RFC 3339, UTC, up to microsecond precision).