Search code examples
google-docs-apigoogle-drive-api

Don't send email notification when ACL modified for Google Doc


I'm trying to find the Java way of doing: https://developers.google.com/google-apps/documents-list/#email_notifications_of_acl_changes

POST https://docs.google.com/feeds/default/private/full/document:12345/acl?send-notification-emails=false

So that no emails are sent when an ACL is added/modified.


Solution

  • You can perform the same task using the newer Drive API which has a complete Java sample at https://developers.google.com/drive/v2/reference/permissions/insert.

    You have to use the setSendNotificationEmails method of Drive.Permissions.Insert.