Add Bulk Collection Modification Endpoint #91

Closed
opened 2025-07-08 08:39:40 -04:00 by AtHeartEngineer · 0 comments

Originally created by @s-nix on 5/7/2025

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. 😃

*Originally created by @s-nix on 5/7/2025* 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._ 😃
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#91