Add Bulk Collection Modification Endpoint #575

Closed
opened 2026-04-05 21:55:33 +02:00 by MrUnknownDE · 0 comments
Owner

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.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#575