cURL
curl --request PUT \ --url https://sbx-{sandbox_id}-{workspace_id}.{region}.bl.run/filesystem/{path} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "content": "file contents here", "isDirectory": false, "permissions": "0644" } '
{ "message": "File created successfully", "path": "/path/to/file" }
Create or update a file or directory
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
File or directory path
File or directory details
"file contents here"
false
"0644"
Success message
"File created successfully"
"/path/to/file"
Was this page helpful?