POST
Mount one project file into the session (BMA extension)

Authorizations

x-api-key
string
header
required

BMA organization API key.

Headers

x-bma-project-id
string

Project to operate in. Required when the key can read more than one project and the deployment has no default project. anthropic-workspace-id is accepted as an alias.

Path Parameters

session_id
string
required
Minimum string length: 1

Body

application/json
type
enum<string>
required
Available options:
file
file_id
string
required

The project file (file_...) to mount.

Pattern: ^file_[a-z2-7]{26}$
mount_path
string | null

Absolute path below /mnt/session/uploads the session's tools read the file at. A path outside it is placed under it. Defaults to /mnt/session/uploads/<file_id>.

Required string length: 1 - 4096

Response

The mounted resource.

id
string
required

Opaque, stable resource id.

Pattern: ^sesrsc_[a-z2-7]{26}$
type
enum<string>
required
Available options:
file
file_id
string
required

The session instance created for the mount.

Pattern: ^file_[a-z2-7]{26}$
mount_path
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required