- List available to discover allowed definitions for the selected location.
- Get current attributes to inspect current value shapes.
- Patch only supported names and values.
/api/v1/misc/google-business
Get current attributes
Endpoint:GET /api/v1/misc/google-business/location/attributes
| Query | Required | Description |
|---|---|---|
teamId | Yes | Team with selected Google Business location. |
attributes: an array of objects. Each item has a name (for example attributes/pay_credit_card) and a value field whose shape depends on the attribute type.
Value types (response and request)
| Kind | JSON shape | Notes |
|---|---|---|
| Boolean | "values": [true] or "values": [false] | Google uses a one-element array for booleans. |
| Enum (multi) | "repeatedEnumValue": { "setValues": ["TOKEN", ...] } | Allowed tokens come from list available for that attribute. |
| URL list | "uriValues": ["https://..."] | When the attribute stores links. |
name via list available or get before you build your UI. Do not assume that every boolean/enum/url-style field is valid for every category.
List available attribute definitions
Endpoint:GET /api/v1/misc/google-business/location/attributes/available
Use this to build dropdowns or validation in your product. Google returns definitions for attributes applicable to the location.
| Query | Required | Description |
|---|---|---|
teamId | Yes | Team identifier. |
languageCode | No | BCP-47 language for labels (for example en). |
regionCode | No | CLDR region (for example US). |
pageSize | No | Integer 1 to 200. |
pageToken | No | Pagination token from a previous response. |
attributes (definition objects) and optional nextPageToken.
Google-side selection context
Google’s attribute catalog is context-sensitive. Availability depends on location/category/region, and can change over time.- In Google APIs, attribute metadata is selected using location/category and localization context.
- In this API,
teamIdselects the connected location context, while optionallanguageCodeandregionCodehelp localize/filter definitions. - Treat this endpoint as the source of truth for what can be patched now.
Update attributes
Endpoint:PATCH /api/v1/misc/google-business/location/attributes
Body
| Field | Required | Description |
|---|---|---|
teamId | Yes | Team identifier. |
attributes | Optional | Array of attribute objects in the update payload. Each item includes name (attributes/...) and the value fields for that attribute type (values, repeatedEnumValue, uriValues, etc.). |
attributeMask | Optional | Comma-separated list of attribute paths, aligned with what you send in attributes. If omitted, the API can derive it from attributes[].name as attributes/{id} joined with commas. You must end up with at least one attribute path (explicit or derived) in the request. |
Example: many boolean attributes (sample ids)
The following update payload shows real-styleattributes/... ids and boolean values arrays. Replace teamId with your team. Only use attribute ids that list available or get returns for your location (ids differ by category and region).
Example: enum-style attribute
name strings and allowed enum tokens come from list available and Google’s attribute catalog for that category.
Related
- Location & profile for core profile fields outside attributes.