updatePermission
Change the role or access level of an existing file or folder sharing permission. Retrieve the permissionId with listPermissions first, then set reader, commenter, writer, organizer, or owner as needed.
Instructions
Changes the role (access level) of an existing sharing permission. Use listPermissions first to get the permissionId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fileId": "<fileId>",
"permissionId": "<permissionId>",
"role": "<role>"
},
"name": "updatePermission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | New access level. Use owner only with transferOwnership=true. | |
| fileId | Yes | The ID of the file or folder. | |
| permissionId | Yes | The ID of the permission to update (from listPermissions). | |
| transferOwnership | No | Set to true when transferring ownership (role must be 'owner'). |