cURL
curl --request POST \ --url http://localhost:4242/{computer_name}/api/editor/create \ --header 'Content-Type: application/json' \ --data ' { "file_text": "Hello, World!", "path": "/path/to/newfile.txt" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Creates a new file with optional initial content.
File path to create
"/path/to/newfile.txt"
Initial file contents
"Hello, World!"
Successfully created file