editor
Create New File
Creates a new file with optional initial content.
POST
/
api
/
editor
/
create
Create New File
Copy
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"
}'
Copy
This response does not have an example.
Body
application/json
Response
204
Successfully created file
Create New File
Copy
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"
}'
Copy
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.