[PRO]: Not able to revert to version 0 via API #6155
Labels
Category: Pro
The issue or pull request is related to the pro packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
core, extension-history
Version(s)
2.17.5
Description of the Bug
Using the Document Management API, I am unable to revert back to version 0 of a given document.
Using the API method from the provided Postman collection:
POST /documents/:identifier/versions/:versionName/revertTo
I get back a 400 Bad Request without any reason if versionName is set to 0. I get 200 OK for all other versions > 0.
If I use the
revertToVersion
command from the History-plugin, I am able to revert to version 0.So this seems be only be an issue with the API.
Browser Used
Chrome
Code Example (Preferred)
No response
Expected Behavior
Successfully revert back to version 0
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: