SubscribeToUserChanges
Creates a notification channel to track changes across all Drive resources owned by the authenticated user.
Input
| Name | Type | Description |
| Id | String | A required string that uniquely identifies the notification channel within your project. Used to stop or update the channel later. |
| Address | String | A required HTTPS URL that listens for and responds to notifications. This is your webhook endpoint. |
| ChannelToken | String | An optional token string that helps associate or authenticate the notification channel. |
| Expiration | String | A Unix timestamp (in milliseconds) representing when the notification channel should stop receiving messages. |
| ResourceId | String | An optional opaque identifier of the resource being watched, used for identifying specific watch requests. |
| ResourceURI | String | An optional identifier pointing to the version-specific form of the resource being monitored. |
| Payload | Boolean | If the value is 'true', the response will include a notification payload. If 'false', only metadata is returned. |
| AdditionalParameters | Object | An optional JSON object used to specify custom settings for the delivery channel, such as custom headers or retry behavior. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | If the value is 'true', the subscription to user change notifications was successful. If 'false', the operation has failed. |
| Kind | String | The type of change event that occurred, such as a file being created or updated. |
| Id | String | The identifier originally specified for this notification channel. |
| ResourceId | String | The unique identifier for the resource that was being watched, included in the notification response. |
| ResourceUri | String | A version-specific URI that identifies the watched resource in the notification. |
| Token | String | Returned only if a token was provided during the creation of the notification channel. |
| Expiration | String | The actual expiration time of the notification channel, returned as a Unix timestamp in milliseconds. |