Update Access Control

Update access permissions for a user or group on an item

Parameters

ParameterTypeRequiredDescription
item_idstringRequiredID of the item
principal_idstringRequiredUser or Group ID to update permissions for
can_viewbooleanOptionalCan view/list the item
can_downloadbooleanOptionalCan download files
can_uploadbooleanOptionalCan upload files
can_deletebooleanOptionalCan delete items
can_manage_permissionsbooleanOptionalCan manage permissions
notify_on_downloadbooleanOptionalNotify on download
notify_on_uploadbooleanOptionalNotify 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
}'