Assign GBP location to another profile
Connect a Google Business location onto a DIFFERENT profile by reusing the OAuth grant from an already-connected GBP account — no browser, no re-authorization. Built for agencies whose single Google account has manager access to many client locations and who run one profile per client: connect one location the normal way (browser OAuth), then bulk-assign the rest onto each client's profile via this endpoint. The path accountId is a SOURCE connected GBP account (the token holder); the body profileId is the TARGET profile. Returns 409 if the target profile already has a Google Business connection (switch its location with PUT gmb-locations instead).
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
A source connected GBP account whose OAuth grant is reused.
Target profile to connect the location onto.
The Google Business location ID to assign (e.g. "locations/123").
Optional but recommended. The Google Business Account resource name ("accounts/123") that owns the location (from GET gmb-locations). When provided the location is resolved directly instead of by enumerating the account, required for accounts with many locations.
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.assignGoogleBusinessLocation({ path: { accountId: 'account_abc123', }, body: { profileId: 'profile_abc123', selectedLocationId: 'selectedlocation_abc123', },});console.log(data);{
"message": "Google Business location assigned to profile successfully",
"account": {
"accountId": "6a41f0ab70e2d329a7741307",
"platform": "googlebusiness",
"username": "Snap Fitness Dianella",
"displayName": "Snap Fitness Dianella",
"isActive": true,
"selectedLocationName": "Snap Fitness Dianella",
"selectedLocationId": "locations/12345678901234567890"
}
}{
"error": "Unauthorized"
}Set default YouTube playlist PUT
Sets the default playlist used when publishing videos for this account. When a post does not specify a playlistId, the default playlist is not automatically used (it is stored for client-side convenience).
List posts GET
Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.