#3350missing endpoints to bulk delete multiple collections/groups
Issue Details
Subject of the issue
While testing the latest testing
image (vaultwarden v1.27.0-729b5631 / web-vault v2023.2.0), I noticed that with the new consolidated view it is now possible to bulk delete collections and groups in the organization tab, however this does not currently work because the respective endpoints are missing.
Steps to reproduce
Create an organization and add two empty collections (if you have set ORG_GROUPS_ENABLED=true
you can test the same with groups). Select both collections and click on Delete selected
in the uppermost three-dot menu and confirm.
Troubleshooting data
The XHR request to DELETE <DOMAIN>/api/organizations/85435556-697e-4441-91b6-14486c9469c6/collections
with data:
{"ids":["95bfdea9-70e7-4ee5-956d-ecd25f53a9d3","3d652f44-cd05-4772-8d82-c8df8e89f6d3"],"organizationId":"85435556-697e-4441-91b6-14486c9469c6"}
The request to DELETE <DOMAIN>/api/organizations/85435556-697e-4441-91b6-14486c9469c6/groups
:
{"ids":["a99a1ede-bf09-44f3-8a39-9f5a2fd22d48","cf3b45fb-f553-4cb5-a437-0e89cd0f2e79"]}
As both endpoints are missing, they return the following response:
{"error":{"code":404,"description":"The requested resource could not be found.","reason":"Not Found"}}