Update Access Control
Update access permissions for a user or group on an item
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
item_id | string | Required | ID of the item |
principal_id | string | Required | User or Group ID to update permissions for |
can_view | boolean | Optional | Can view/list the item |
can_download | boolean | Optional | Can download files |
can_upload | boolean | Optional | Can upload files |
can_delete | boolean | Optional | Can delete items |
can_manage_permissions | boolean | Optional | Can manage permissions |
notify_on_download | boolean | Optional | Notify on download |
notify_on_upload | boolean | Optional | Notify on upload |
Examples
MCP Tool Call
{
"name": "sharefile_updateAccessControl",
"arguments": {
"item_id": "example",
"principal_id": "example",
"can_view": true,
"can_download": true,
"can_upload": true,
"can_delete": true,
"can_manage_permissions": true,
"notify_on_download": true,
"notify_on_upload": true
}
}REST API
curl -X POST https://api.syncello.io/v1/tools/sharefile/updateAccessControl \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"item_id": "example",
"principal_id": "example",
"can_view": true,
"can_download": true,
"can_upload": true,
"can_delete": true,
"can_manage_permissions": true,
"notify_on_download": true,
"notify_on_upload": true
}'