Sign in

Create permission (v2)

documented

Inserts a permission for a file or shared drive (v2).

POST /drive/v2/files/{fileId}/permissionsDriveno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://www.googleapis.com/drive/v2/files/{{$file_id}}/permissions?sendNotificationEmails={{sendNotificationEmails}}&emailMessage={{emailMessage}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"type": "{{$entity_type}}", "role": "{{$role}}", "value": "{{$entity_value}}"}'
Create permission (v2) · Google Drive · OpenIntegrations