Undo a session
View as MarkdownPOST
/v1/history/sessions/{sessionId}/undoReverts every change a session made, newest first, as one undoable step. Changes that later edits by others touched are skipped and reported, as are changes that cannot be undone.
docs:writeUndoable
curl -X POST "https://api.lydie.co/v1/history/sessions/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/undo" \
-H "Authorization: Bearer $LYDIE_TOKEN"Path parameters
Response
{
"undoneIds": [
"01JCQ3V5MZ8G4ZK2X7T9R6N1PB"
],
"skipped": [
{
"id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"operation": "string",
"reason": "not_undoable",
"message": "string"
}
]
}Errors use one envelope for every endpoint. See Errors and versions.