unshare_drive_file
Remove a permission from a file.
destructiveGoogle Sheets, Docs & Drive
Call it
In an AI client (MCP)
{
"name": "unshare_drive_file",
"arguments": {
"fileId": "<fileId>",
"permissionId": "<permissionId>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/unshare_drive_file \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileId":"<fileId>","permissionId":"<permissionId>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
fileIdrequired | string | the Drive file ID. |
permissionIdrequired | string | Permission ID to remove. |
Result
Every tool answers {notification, data, human_action}; data carries:
success— Boolean indicating successful removal.
Example
unshare_drive_file(fileId="1XYZ...", permissionId="12345")