Sharing
Collection can be shared with other users, which are then called collaborators, and this section describes the different commands that are related to sharing.
Collaborators
Every user who shares at least one collection with another user, has a collaborators record in the API response. The record contains a restricted subset of user-specific fields.
Field | Description |
_id | User ID of the collaborator |
Email of the collaborator Empty when authorized user have read-only access | |
email_MD5 | MD5 hash of collaborator email. Useful for using with Gravatar for example |
fullName | Full name of the collaborator |
role | Access level:
|
Share collection
POST
https://api.raindrop.io/rest/v1/collection/{id}/sharing
Share collection with another user(s). As result invitation(s) will be send to specified email(s) with link to join collection.
Path Parameters
Name | Type | Description |
---|---|---|
id | number | Existing collection ID |
Request Body
Name | Type | Description |
---|---|---|
role | string | Access level. Possible values:
|
emails | array | The user email(s) with whom to share the project. Maximum 10 |
Get collaborators list of collection
GET
https://api.raindrop.io/rest/v1/collection/{id}/sharing
Path Parameters
Name | Type | Description |
---|---|---|
id | number | Existing collection ID |
Unshare or leave collection
DELETE
https://api.raindrop.io/rest/v1/collection/{id}/sharing
There two possible results of calling this method, depends on who authenticated user is: - Owner: collection will be unshared and all collaborators will be removed - Member or viewer: authenticated user will be removed from collaborators list
Path Parameters
Name | Type | Description |
---|---|---|
id | number | Existing collection ID |
Change access level of collaborator
PUT
https://api.raindrop.io/rest/v1/collection/{id}/sharing/{userId}
Path Parameters
Name | Type | Description |
---|---|---|
userId | number | User ID of collaborator |
id | number | Existing collection ID |
Request Body
Name | Type | Description |
---|---|---|
role | string |
|
Delete a collaborator
DELETE
https://api.raindrop.io/rest/v1/collection/{id}/sharing/{userId}
Remove an user from shared collection
Path Parameters
Name | Type | Description |
---|---|---|
userId | number | User ID of collaborator |
id | number | Existing collection ID |
Accept an invitation
POST
https://api.raindrop.io/rest/v1/collection/{id}/join
Accept an invitation to join a shared collection
Path Parameters
Name | Type | Description |
---|---|---|
id | number | Existing collection ID |
Request Body
Name | Type | Description |
---|---|---|
token | string | Secret token from email |
Last updated