This call returns the members of a specific volume. The volume is specified as volume_id and consists of the owner and name of a volume (for example rfranklin/my-first-volume).
Request
https://cavatica-api.sbgenomics.com/v2/storage/volumes/{volume_id}/membersExample request
POST /v2/storage/volumes/rfranklin/my-first-volume/members HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f75curl -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "Content-type: application/json" -X POST "https://api.sbgenomics.com/storage/volumes/rfranklin/my-first-volume/members"Header Fields
Key | Description of value |
|---|---|
| Your CAVATICA authentication token. |
|
|
Path parameters
Key | Data type of value | Description of value |
|---|---|---|
| String | The volume that you want to query, which consists of username of the volume owner and volume name, for example |
Request body
In the body, you should enter a list of key-value pairs. The keys and the values they take are described in the following table.
Key | Data type | Description |
|---|---|---|
| String | The Cavativa username of the collaborator you wish to invite to your volume. |
| Object | This object contains information about the permissions granted to the user being added. Permissions include listing the contents of a volume, importing files from the volume to the Platform, exporting files from the Platform to the volume, and admin privileges. |
| String | Set this to |
| String | Set this to |
| String | Set this to |
| String | Set this to |
Example request body
{
"username": "crickandwatson",
"permissions": {
"read": true,
"copy": true,
"write": false,
"admin": false
}
}Response
Example response body
{
"username": "crickandwatson",
"email": "[email protected]",
"href": "https://cavatica-api.sbgenomics.com/v2/storage/volumes/rfranklin/my-first-volume/members/members/723c949a-789c-12b3-45b6-b2dd0d8d0021",
"permissions": {
"write": false,
"read": true,
"copy": false,
"admin": false
},
"type": "TEAM",
"id": "723c949a-789c-12b3-45b6-b2dd0d8d0021"
}