Update GBP location
Switch which GBP location is active for a connected account.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Optional but recommended. The Google Business 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 Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.updateGmbLocation({ path: { accountId: 'account_abc123', }, body: { selectedLocationId: 'selectedlocation_abc123', },});console.log(data);{
"message": "Google Business location updated successfully",
"selectedLocation": {
"id": "12345678901234567890",
"name": "My Business Location"
}
}{
"error": "Unauthorized"
}List GBP locations GET
Returns Google Business Profile locations the connected account can access, plus the currently selected location. The list is bounded (see hasMore); for accounts that own many locations, use the search or filter query params to find a specific one instead of loading them all.
List LinkedIn orgs GET
Fetch full LinkedIn organization details (logos, vanity names, websites) for custom UI. No authentication required, just the tempToken from OAuth.