shareCollection
Share a Raindrop.io collection by specifying emails, access level (view, edit, remove), and collection ID to enable collaborative bookmark management.
Instructions
Share a collection with others
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emails | No | Email addresses to share with | |
| id | Yes | Collection ID | |
| level | Yes | Access level |
Implementation Reference
- src/services/raindrop.service.ts:116-124 (handler)The core handler function that implements sharing a Raindrop collection. It makes a PUT request to the Raindrop API's /collection/{id}/sharing endpoint with the specified sharing level and optional email recipients, returning the share link and access details.async shareCollection(id: number, level: string, emails?: string[]): Promise<{ link: string; access: any[] }> { const body: any = { level }; if (emails) body.emails = emails; const { data } = await this.client.PUT('/collection/{id}/sharing', { params: { path: { id } }, body }); return { link: data?.link || '', access: [...(data?.access || [])] }; }