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

copyPad missing from API? #6849

Open
rhagstrand opened this issue Feb 3, 2025 · 1 comment
Open

copyPad missing from API? #6849

rhagstrand opened this issue Feb 3, 2025 · 1 comment

Comments

@rhagstrand
Copy link

Describe the bug
The method copyPad seems to be missing from the API

To Reproduce
Steps to reproduce the behavior:
Run Etherpad lite locally (im using windows and version 2.2.7)
Start a webbrowser and goto /api/1/copyPad
You get "no such function"
For example /api/1/deletePad returns missing apiKey so it found the method

Expected behavior
I expect the method to be there as stated in the API description https://etherpad.org/doc/v1.8.4/#index_http_api

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

  • Etherpad version:
  • OS: Windows server 2023
  • Node.js version (node --version): 22.13.0
  • npm version (npm --version): 10.9.2
  • Is the server free of plugins: yes

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] Latest

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@rhagstrand
Copy link
Author

Ill answer this myself. Apparently copyPad, setHTML, getHTML and probably some other methods require a different version of the api.

So dont use:
/api/1/copyPad

instead use:
/api/1.12.15/copyPad

Im probably the idiot but I didnt see that documented anywhere.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant