Watch file (v2)
documentedSubscribes to changes on a file (v2).
POST /drive/v2/files/{fileId}/watchDriveno implementation yet0 runsNo 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}}/watch" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"id": "{{$watch_id}}", "type": "web_hook", "address": "{{$webhook_address}}", "token": "{{$channel_token}}", "params": {"ttl": {{$watch_ttl}}}}'