editor
Insert Text
Inserts text at a specified line number in a file.
POST
/
api
/
editor
/
insert
Copy
curl --request POST \
--url http://localhost:4242/{computer_name}/api/editor/insert \
--header 'Content-Type: application/json' \
--data '{
"insert_line": 5,
"path": "/path/to/file.txt",
"text": "New line of text"
}'
Copy
This response does not have an example.
Body
application/json
Response
204
Successfully inserted text
Copy
curl --request POST \
--url http://localhost:4242/{computer_name}/api/editor/insert \
--header 'Content-Type: application/json' \
--data '{
"insert_line": 5,
"path": "/path/to/file.txt",
"text": "New line of text"
}'
Copy
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.