Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRO]: Not able to revert to version 0 via API #6155

Open
1 task done
olavhaugen opened this issue Mar 3, 2025 · 0 comments
Open
1 task done

[PRO]: Not able to revert to version 0 via API #6155

olavhaugen opened this issue Mar 3, 2025 · 0 comments
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

Comments

@olavhaugen
Copy link

olavhaugen commented Mar 3, 2025

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

  • Yes, I've updated all my dependencies.
@olavhaugen olavhaugen added 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 labels Mar 3, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Tiptap: Issues Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant