Method: accounts.notificationsubscriptions.patch

  • This operation updates an existing notification subscription for a merchant using a PATCH request to a specified URL.

  • The request requires path and query parameters, including the notification subscription name and an update mask.

  • Both the request and response bodies utilize the NotificationSubscription object to manage subscription details.

  • Authorization is necessary using the https://www.googleapis.com/auth/content OAuth scope.

Updates an existing notification subscription for a merchant.

HTTP request

PATCH https://merchantapi.googleapis.com/notifications/v1beta/{notificationSubscription.name=accounts/*/notificationsubscriptions/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
notificationSubscription.name

string

Output only. The name of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription. The account represents the merchant ID of the merchant that owns the configuration. Format: accounts/{account}/notificationsubscriptions/{notificationSubscription}

Query parameters

Parameters
updateMask

string (FieldMask format)

List of fields being updated.

Request body

The request body contains an instance of NotificationSubscription.

Response body

If successful, the response body contains an instance of NotificationSubscription.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/content

For more information, see the OAuth 2.0 Overview.