Skip to main content
POST
/
api
/
editor
/
undo-edit
Undo Last Edit
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>"
    }
  ]
}

Body

application/json
path
string
required

File path to undo changes

Example:

"/path/to/file.txt"

Response

Successfully undid last edit