Sessions

Upload Session Cwd File

Changed on

Write a file into the session's working directory, creating that mount if needed.

The composer uses this for files over the attachment cap. A session that has not run yet has no working-directory mount, and the only other route that creates one also signs storage credentials, which the browser must never receive.

post/sessions/mounts/files/upload

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/sessions/mounts/files/upload
  • Auth
    API key in header Authorization

Query parameters

session_idstring required
pathstring nullable

Request body multipart/form-data

filestring binary required

Response

Successful Response

pathstring required
sizeinteger
etagstring nullable

Changes