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

Is it possible to use via CLI or API? #221

Open
xeruf opened this issue Mar 31, 2023 · 1 comment
Open

Is it possible to use via CLI or API? #221

xeruf opened this issue Mar 31, 2023 · 1 comment

Comments

@xeruf
Copy link

xeruf commented Mar 31, 2023

I use curl to batch create shares via the OCS Share API: https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-share-api.html#create-a-new-share

Is there anything similar possible when using this app to batch rename the shares?

@JonathanTreffler
Copy link
Owner

Currently not, as the rename api route performs a CSRF check (see #31 (comment)), you can patch the sharerenamer app locally for yourself by adding the NoCSRFRequired annotation (see #31 (comment)).

A solution would be to add a second api route, that does not perform the check, many other apps have this, I have just not come around to implementing it here, as only few people need it.

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

2 participants