---
title: "Update Google Business Profile location"
method: PUT
path: "/v1/accounts/{accountId}/gmb-locations"
tags: ["Connect"]
---

# Update Google Business Profile location

`PUT /v1/accounts/{accountId}/gmb-locations`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/accounts/{accountId}/gmb-locations`
- Auth: HTTP bearer

Switch which Google Business Profile location is active for a connected account.

## Path parameters

- `accountId` string, required

## Request body

- object
  - `selectedLocationId` string, required
  - `googleAccountId` string: Optional but recommended. The Google Business Profile Account resource name ("accounts/123") that owns the new location (from GET gmb-locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts with many locations. Named `googleAccountId` to disambiguate from the path `accountId` (the Zernio account). The legacy field name `accountId` is still accepted for backwards compatibility.

## Response `200`

Location updated

- object
  - `message` string
  - `selectedLocation` object
    - `id` string
    - `name` string

## Other responses

- `400`: Location not in available locations, or the provided googleAccountId is not one of the accounts this connection manages
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `404`: Account not found
- `409`: Another account on this profile is already connected to that destination (profile_platform_conflict).

## Changes

- **2026-10-06** `f8c8f34fb41a`: 2 warning
  - added the new `account` enum value to the `details/budgetScope` response property for the response status `401`
  - added the new `account` enum value to the `details/budgetScope` response property for the response status `409`
- **2026-10-02** `d556591af3f6`: 8 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `details` to the response with the `401` status
  - added the optional property `docUrl` to the response with the `401` status
  - added the optional property `docUrl` to the response with the `409` status
  - …4 more
- **2026-10-01** `f92af0e169c1`: 1 info
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/accounts/:accountId/gmb-locations/put.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/4e74db179e73?raw)
