Sharing a folder
Last updated
{
"folderId": "FOLDER_ID",
"shares": [
{
"email": "user@exemple.com",
"role": "VIEWER"
},
{
"group_id": "abc123",
"role": "EDITOR"
}
],
"emailMessage": "Now I'm sharing this folder with you!"
}mutation UpdateFolderSharing(
$folderId: String!
$sharingId: String
$role: FolderRoleEnum
$shareByLink: Boolean
$password: String
$removePassword: Boolean
) {
updateSharing(
folder_id: $folderId
sharing_id: $sharingId
role: $role
share_by_link: $shareByLink
password: $password
remove_password: $removePassword
) {
id
name
link_identifier
has_password
shares {
id
role
is_by_link
}
}
}{
"folderId": "FOLDER_ID",
"sharingId": "SHARING_ID",
"role": "EDITOR"
}{
"folderId": "FOLDER_ID",
"shareByLink": true,
"password": "PASSWORD_LINK"
}