Skills Development Drive Change Notifications

Drive Change Notifications

v20260401
recipe-watch-drive-changes
Subscribe to Google Drive file or folder change notifications via the gws CLI recipe, keeping active subscriptions listed and renewed so downstream systems can react to updates automatically.
Get Skill
475 downloads
Overview

Watch for Drive Changes

PREREQUISITE: Load the following skills to execute this recipe: gws-events

Subscribe to change notifications on a Google Drive file or folder.

Steps

  1. Create subscription: gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}'
  2. List active subscriptions: gws events subscriptions list
  3. Renew before expiry: gws events +renew --subscription SUBSCRIPTION_ID
Info
Category Development
Name recipe-watch-drive-changes
Version v20260401
Size 922B
Updated At 2026-04-08
Language