v1

latestOpenAPI 3.1.02026-07-13372867.8 KB
editor

Create New File

Creates a new file with optional initial content.

post/api/editor/create

Request body

pathstring required

File path to create

file_textstring nullable

Initial file contents

Example request

{
  "file_text": "Hello, World!",
  "path": "/path/to/newfile.txt"
}

Response

Successfully created file