Update attributes
Updates location attributes (amenities, services, etc.).
The attributeMask specifies which attributes to update (comma-separated).
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
Comma-separated attribute names to update (e.g. 'has_delivery,has_takeout')
1 <= lengthResponse Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.gmbattributes.updateGoogleBusinessAttributes({ path: { accountId: 'account_abc123', }, body: { attributes: [ { name: 'Example', }, ], attributeMask: 'string', },});console.log(data);{
"success": true,
"accountId": "string",
"locationId": "string",
"attributes": [
{}
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}Get attributes GET
Returns GBP location attributes (amenities, services, accessibility, payment types). Available attributes vary by business category.
Get attribute metadata GET
Returns metadata about which Google Business Profile attributes are available for a location or business category. Use this endpoint to discover valid attribute names, value types, and allowed enum values before reading or writing via gmb-attributes. Two mutually exclusive query modes: **Location mode**: pass `locationId` (or rely on the account's stored `selectedLocationId`). Google returns attributes valid for that specific location. **Category mode**: pass `categoryName` (must start with `categories/`) and `regionCode`. Google returns attributes valid for that category across the given region. `languageCode` is optional in category mode. Both modes support `pageSize` and `pageToken` for pagination.