---
title: "PATCH /v1/{+name}"
method: PATCH
path: "/v1/{+name}"
tags: ["accounts"]
---

# PATCH /v1/{+name}

`PATCH /v1/{+name}`

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, update with an empty notification_types

## Path parameters

- `name` string, required

## Query parameters

- `updateMask` string

## Request body

- NotificationSetting — A Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.
  - `notificationTypes` string[] — The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notification_types or set the pubsub_topic to an empty string.
  - `pubsubTopic` string — Optional. The Google Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account mybusiness-api-pubsub@system.gserviceaccount.com must have at least Publish permissions on the Pub/Sub topic.
  - `name` string — Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/mybusinessnotifications.md) · [All operations](https://skmtc.net/google/apis/mybusinessnotifications/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/mybusinessnotifications/versions/96da5c0ad686/schema)
