Renew an Expiring Watch
A 3-step recipe with Google Forms. We can help you get access.
Recipe · 3 steps
Renew an Expiring Watch
with Google Forms
Keep a form's response watch alive across its seven-day expiry.
- List the watches this project owns on the form. An empty list means the previous watch already expired and was dropped by the service.
- Renew the existing watch for seven days from now. This preserves the watch id, so no downstream subscriber configuration has to change.
- Create a replacement watch against the same Pub/Sub topic when no watch survived. The new watch carries a new id.
What you'll need to have ready
- formId: The id of the watched form.
- topicName: Fully qualified Pub/Sub topic used when a replacement watch has to be created, e.g. projects/my-project/topics/forms-notifications.
- eventType: The event type for a replacement watch, either RESPONSES or SCHEMA.
For your developer
Arazzo workflow google-forms:renew-expiring-watch, 3 operations: listWatches → renewWatch → createWatch. Specs on APIs.io.