Write or create a file
PUT
/browsers/{id}/fs/write_fileAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Browser session ID
Query Parameters
path*string
Destination absolute file path.
Match
^/.*mode?string
Optional file mode (octal string, e.g. 644). Defaults to 644.
Match
^[0-7]{3,4}$Request Body
application/octet-stream
TypeScript Definitions
Use the request body type in TypeScript.
body*file
Format
binaryResponse
File written successfully
no response body.
curl -X PUT "https://example.com/browsers/string/fs/write_file?path=string" \ -H "Content-Type: application/octet-stream" \ -d 'string'Empty
{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}