Skip to content
Notis

Refresh Bunny after a Drive file is shared

When access changes for a Drive file, prompt Notis to refresh the relevant Bunny pull zone if your delivery setup calls for it.

Trigger

File Shared (Permissions Added)

Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.

Action

Purge Pull Zone

Tool to purge the entire cache of a pull zone. use after updating origin or critical content to ensure no stale assets are served.

Why this helps

Sharing changes can require a cache refresh, but remembering whether to clear a delivery zone adds another manual check.

  • Make a cache refresh part of the sharing-change response.
  • Use a full-zone purge when the content delivery setup warrants it.
  • Keep the action tied to a real Drive permissions event.

Setup

Build it in a few focused steps.

  • 1Connect Google Drive and Bunnycdn once in the Notis portal.
  • 2Create an automation by telling Notis which Bunny pull zone to purge when a newly shared Drive file affects content delivered through that zone.
  • 3Pick the Google Drive File Shared trigger.
  • 4Choose where run reports should go, then test with one real sharing change.

Questions about this workflow

Does every Drive share change require a full purge?

No. Use this workflow only when the content is served through the specified pull zone and your process calls for a full cache purge.

Can Notis discover which pull zone serves a file?

Do not assume that relationship is available. Name the relevant zone or provide an instruction that lets Notis identify it from available information.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Google Drive to Bunnycdn. A trigger fires from one place; an action lands in another.

Google Drive triggers

Bunnycdn actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Add Storage Zone

Tool to add a new storage zone. use when you need dedicated file storage in a specific region.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Create DNS Record

Tool to create a new dns record in a specific dns zone. use after confirming the dns zone id is active.

ActionInstant

Comment Added (Docs/Sheets/Slides)

Triggers when a new comment is added to Google Docs, Sheets, or Slides.

TriggerPolling

Create Pull Zone

Tool to create a new pull zone. use after gathering origin details.

ActionInstant

File Created

Triggers when a new file is created in Google Drive.

TriggerPolling

Delete DNS Record

Tool to delete a specific dns record by its id. use after confirming the dns zone id and record id.

ActionInstant

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

TriggerPolling

Delete DNS Zone

Tool to delete a specific dns zone by its id. use when you need to permanently remove an existing dns zone after verifying the zone id.

ActionInstant

File Shared (Permissions Added)

Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.

TriggerPolling

Delete Pull Zone

Tool to delete a specific pull zone by its id. use when you need to remove a pull zone after confirming its id.

ActionInstant

File Updated

Triggers when a file's metadata or content changes in Google Drive.

TriggerPolling

Delete Storage Zone

Tool to delete a storage zone. use when you need to remove a storage zone after confirming its id.

ActionInstant

Google Drive Changes

Triggers when changes are detected in a Google Drive.

TriggerPolling

Get DNS Zone Details

Tool to retrieve details of a specific dns zone by its id. use when you need to verify dns zone configuration after creation or update.

ActionInstant

Connect any two apps with Notis in the middle.

Google Drive and Bunnycdn, or any other combination from 1,000+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Bunnycdn.