You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14667eb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: api/openapi.yaml
+222Lines changed: 222 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7374,6 +7374,138 @@ paths:
7374
7374
x-content-type: application/json
7375
7375
x-accepts:
7376
7376
- application/json
7377
+
/v1/accounts/{accountId}/gmb-attribute-metadata:
7378
+
get:
7379
+
description: |
7380
+
Returns metadata about which Google Business Profile attributes are available for
7381
+
a location or business category. Use this endpoint to discover valid attribute names,
7382
+
value types, and allowed enum values before reading or writing via gmb-attributes.
7383
+
7384
+
Two mutually exclusive query modes:
7385
+
7386
+
**Location mode**: pass `locationId` (or rely on the account's stored `selectedLocationId`).
7387
+
Google returns attributes valid for that specific location.
7388
+
7389
+
**Category mode**: pass `categoryName` (must start with `categories/`) and `regionCode`.
7390
+
Google returns attributes valid for that category across the given region.
7391
+
`languageCode` is optional in category mode.
7392
+
7393
+
Both modes support `pageSize` and `pageToken` for pagination.
7394
+
operationId: getGmbAttributeMetadata
7395
+
parameters:
7396
+
- explode: false
7397
+
in: path
7398
+
name: accountId
7399
+
required: true
7400
+
schema:
7401
+
type: string
7402
+
style: simple
7403
+
- description: |
7404
+
GBP location ID (e.g. "6257659026299438786"). If omitted, uses the account's stored selectedLocationId. Mutually exclusive with categoryName.
7405
+
explode: true
7406
+
in: query
7407
+
name: locationId
7408
+
required: false
7409
+
schema:
7410
+
type: string
7411
+
style: form
7412
+
- description: |
7413
+
Category resource name, must start with "categories/" (e.g. "categories/gcid:plumber"). Required together with regionCode. Mutually exclusive with locationId.
7414
+
explode: true
7415
+
in: query
7416
+
name: categoryName
7417
+
required: false
7418
+
schema:
7419
+
type: string
7420
+
style: form
7421
+
- description: |
7422
+
BCP-47 region code (e.g. "US", "ES"). Required when categoryName is provided.
7423
+
explode: true
7424
+
in: query
7425
+
name: regionCode
7426
+
required: false
7427
+
schema:
7428
+
type: string
7429
+
style: form
7430
+
- description: |
7431
+
BCP-47 language code for display names (e.g. "en", "es"). Optional when categoryName is provided. Omitted from the Google call when not supplied.
7432
+
explode: true
7433
+
in: query
7434
+
name: languageCode
7435
+
required: false
7436
+
schema:
7437
+
type: string
7438
+
style: form
7439
+
- description: Maximum number of attribute metadata items to return. Google
7440
+
defaults to 200.
7441
+
explode: true
7442
+
in: query
7443
+
name: pageSize
7444
+
required: false
7445
+
schema:
7446
+
maximum: 200
7447
+
minimum: 1
7448
+
type: integer
7449
+
style: form
7450
+
- description: Pagination token from a previous response's nextPageToken field.
0 commit comments