editor
Undo Last Edit
Reverts the last edit made to a file.
POST
/
api
/
editor
/
undo-edit
Copy
curl --request POST \
--url http://localhost:4242/{computer_name}/api/editor/undo-edit \
--header 'Content-Type: application/json' \
--data '{
"path": "/path/to/file.txt"
}'
Copy
This response does not have an example.
Body
application/json
Response
204
Successfully undid last edit
Copy
curl --request POST \
--url http://localhost:4242/{computer_name}/api/editor/undo-edit \
--header 'Content-Type: application/json' \
--data '{
"path": "/path/to/file.txt"
}'
Copy
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.