title: Getting 500 Error when using Google Drive API to update permissions
body: <p>I am getting 500 error when I am trying to give access permission of any file. I don't want to send e-mail when the file is shared with someone. I want to stop the notification emails. </p>
  
  <pre><code>  Insert insert = service.permissions().insert(fileId, newPerm);
    insert.setSendNotificationEmails(false);
    newPerm = insert.execute();
  
  
          500 OK
              {
              "code" : 500,
              "errors" : [ {
              "domain" : "global",
              "message" : "Internal Error. User message: \"An internal                                                     error has occurred which prevented the sharing of these item(s): fileame\"",
             "reason" : "internalError"
              } ],
            "message" : "Internal Error. User message: \"An internal error has occurred which prevented the sharing of these item(s): filename\""
              }
  </code></pre>
  
  <p>Appreciate any suggestion.</p>