Skip to content

Replace services

Replaces the entire service list for a location. Google's API requires full replacement; individual item updates are not supported. Each service can be structured (using a predefined serviceTypeId) or free-form (custom label).

PUT /v1/accounts/{accountId}/gmb-services

Replaces the entire service list for a location. Google's API requires full replacement; individual item updates are not supported. Each service can be structured (using a predefined serviceTypeId) or free-form (custom label).

Parameters

  • accountId (path, string) required

  • locationId (query, string) — Override which location to target. If omitted, uses the account's selected location.

Request body

Content-Type: application/json

  • serviceItems (array) required

Example:

json

{
  "serviceItems": [
    {
      "freeFormServiceItem": {
        "category": "categories/gcid:plumber",
        "label": {
          "displayName": "Pipe Repair",
          "description": "Emergency and scheduled pipe repair"
        }
      },
      "price": {
        "currencyCode": "USD",
        "units": "150"
      }
    }
  ]
}

Responses

200 — Services updated successfully

  • success (boolean)
  • services (array)

400 — Invalid request

  • error (string)
  • details (object)

401 — Unauthorized

  • error (string)
  • details (object)