mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
[PR #5838] Add Bulk Collection Modification Endpoint #2523
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/dani-garcia/vaultwarden/pull/5838
State: closed
Merged: No
This pull request introduces a new API endpoint to handle bulk updates to cipher collections, along with the necessary data structure and logic to support it.
Changes:
post_bulk_collectionsto theroutesfunction insrc/api/core/ciphers.rsto register the new endpoint.BulkCollectionsDatastruct to encapsulate the data required for bulk operations, including organization ID, collection IDs, cipher IDs, and a flag to indicate whether to remove collections.post_bulk_collectionsfunction to handle bulk updates.Closes #5830
Note: I am fairly new to Rust so any suggestions are appreciated. 😃