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

What is permissionId in Google API?


I am trying to replicate the JavaScript client library example shown on https://developers.google.com/drive/v2/reference/permissions/update#examples. There is a reference to permissionId. How do I get this, I've looked everywhere, and my assumption is I am missing something dead obvious.

Thanks in advance.


Solution

  • In a REST API such as Drive, every resource has a unique ID. Permissions are the same. When you create a permission, its ID is returned within the response. If you list permissions, you'll see it there. See https://developers.google.com/drive/api/v3/reference/permissions