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" }'
This response does not have an example.
Creates a new file with optional initial content.
File path to create
"/path/to/newfile.txt"
Initial file contents
"Hello, World!"
Successfully created file