Mounts a file dynamically during a running session. The server creates an internal copy of the file and prefixes the mount path with /mnt/session/uploads/. This operation does not produce session events.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /sessions/{session_id}/resources
Path parameters
session_id
string
(必选)
Session ID, format sesn_<ULID>
Request bodytypestring(必选)Resource type, always filefile_idstring(必选)ID of the uploaded filemount_pathstring(必选)Mount path, starting with /uploads | Request example |
Response fieldsidstringResource ID, format sesrsc_<ULID>typestringResource type, always filefile_idstringFile ID of the internal copy; differs from the file_id in the requestmount_pathstringFull mount path within the sessioncreated_atstringCreation time, ISO 8601updated_atstringLast update time, ISO 8601request_idstringUnique request identifier | Response |
Error codes
| HTTP status | Error code | Description |
|---|