[PR #5838] Add Bulk Collection Modification Endpoint #2523

Open
opened 2025-10-09 18:06:40 +03:00 by OVERLORD · 0 comments
Owner

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:

  • Added a new route post_bulk_collections to the routes function in src/api/core/ciphers.rs to register the new endpoint.
  • Introduced the BulkCollectionsData struct to encapsulate the data required for bulk operations, including organization ID, collection IDs, cipher IDs, and a flag to indicate whether to remove collections.
  • Implemented the post_bulk_collections function to handle bulk updates.

Closes #5830

Note: I am fairly new to Rust so any suggestions are appreciated. 😃

**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: * Added a new route `post_bulk_collections` to the `routes` function in `src/api/core/ciphers.rs` to register the new endpoint. * Introduced the `BulkCollectionsData` struct to encapsulate the data required for bulk operations, including organization ID, collection IDs, cipher IDs, and a flag to indicate whether to remove collections. * Implemented the `post_bulk_collections` function to handle bulk updates. Closes #5830 _Note: I am fairly new to Rust so any suggestions are appreciated._ 😃
OVERLORD added the pull-request label 2025-10-09 18:06:40 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2523