batchUpdateBookmarks
Update multiple bookmarks simultaneously in Raindrop.io by applying tags, marking as important, or moving to a specific collection for improved organization.
Instructions
Update multiple bookmarks at once
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | No | Collection ID to move bookmarks to | |
| ids | Yes | List of bookmark IDs | |
| important | No | Mark as important | |
| tags | No | Tags to apply to all bookmarks |
Implementation Reference
- src/services/raindrop.service.ts:228-245 (handler)The `batchUpdateBookmarks` method in the `RaindropService` class provides the core implementation for batch updating multiple bookmarks. It constructs a request body with the provided IDs and updates (tags, collection, important flag, broken flag) and sends a PUT request to the Raindrop.io API endpoint `/raindrops`. Returns true if the update was successful./** * Batch update bookmarks * Raindrop.io API: PUT /raindrops */ async batchUpdateBookmarks(ids: number[], updates: { tags?: string[]; collection?: number; important?: boolean; broken?: boolean; }): Promise<boolean> { const body: any = { ids }; if (updates.tags) body.tags = updates.tags; if (updates.collection) body.collection = { $id: updates.collection }; if (updates.important !== undefined) body.important = updates.important; if (updates.broken !== undefined) body.broken = updates.broken; const { data } = await this.client.PUT('/raindrops', { body }); return !!data?.result; }