Update your Business Profile pubsub notifications
google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsettingaccounts.updateNotificationSetting — Sets the pubsub notification setting for the account informing Google which topic to send pubsub notifications for. Use the notification_types field within notification_setting to manipulate the events an account wants to subscribe to. An account will only have one notification setting resource, and only one pubsub topic can be set. To delete the setting, updat
- Price
- freeAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
PATCHhttps://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsettingPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
name | string | Required | Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`. | |
| Query parameters | ||||
updateMask | string | Optional | Required. The specific fields that should be updated. The only editable field is notification_setting. | |
- Path parameters
namestringRequiredRequired. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.
- Query parameters
updateMaskstringOptionalRequired. The specific fields that should be updated. The only editable field is notification_setting.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsetting' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PATCH",
"https://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsetting",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsetting", {
method: "PATCH",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.