Browser Filesystem

Write or create a file

put/browsers/{id_or_name}/fs/write_file

Request

  • Base URL
    https://api.onkernel.com
  • URL
    https://api.onkernel.com/browsers/{id_or_name}/fs/write_file
  • Auth
    HTTP bearer

Path parameters

id_or_namestring required

Browser session ID or name

Query parameters

pathstring required

Destination absolute file path.

modestring

Optional file mode (octal string, e.g. 644). Defaults to 644.

Request body application/octet-stream

string binary required

Response

File written successfully

Changes

No recorded changes to this operation across all 76 revisions of this API.