POST
/
api
/
editor
/
create
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.

Body

application/json
path
string
required

File path to create

Example:

"/path/to/newfile.txt"

file_text
string | null

Initial file contents

Example:

"Hello, World!"

Response

204

Successfully created file