cURL
curl --request POST \ --url http://localhost:4242/{computer_name}/api/editor/undo-edit \ --header 'Content-Type: application/json' \ --data ' { "path": "/path/to/file.txt" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Reverts the last edit made to a file.
File path to undo changes
"/path/to/file.txt"
Successfully undid last edit