Sign up for email announcements to stay updated on the latest information about the GMB API.

Method: accounts.locations.patch

Updates the specified location.

Photos are only allowed on a location that has a Google+ page.

Returns NOT_FOUND if the location does not exist.

HTTP request

PATCH https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The name of the location to update.

Query parameters

Parameters
updateMask

string (FieldMask format)

The specific fields to update. If no mask is specified, then this is treated as a full update and all fields are set to the values passed in, which may include unsetting empty fields in the request.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

validateOnly

boolean

If true, the request is validated without actually updating the location.

attributeMask

string (FieldMask format)

The IDs of the attributes to update. Only attributes noted in the mask will be updated. If an attribute is present in the mask and not in the location, it will be removed. An empty mask will update all attributes.

Whenever this field is set, the updateMask should include attributes as one of the fields to update.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Location.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/plus.business.manage

For more information, see the OAuth 2.0 Overview.