v1Resources/Locations/deleteRemove a service

Remove a service

Locations

Removes one service by name and re-publishes the remaining list to Google.

delete/api/v1/locations/{id}/services
locations:write

Query parameters

idstringrequired
namestringrequired
Exact name of the service to remove.

Response

dataobjectoptional
servicesarray of objectoptional
namestringrequired
Service name.
descriptionstringoptional
Service description.
pricenumberoptional
Service price.
currencystringoptional
Currency code for the price.
googleServiceTypeIdstringoptional
Google's structured service-type id, if matched to one.

Errors

400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
409The request conflicts with the current state of the resource — for example, changing the email or phone of a recipient who has already been messaged, or a team invite that was already accepted (or hasn't been accepted yet).
429Too many requests. The window field names the limit you hit; retry after the number of seconds in the Retry-After header.
delete/api/v1/locations/{id}/services
Your API key
id *
name *
{
  "data": {
    "services": []
  }
}

Guides that use this resource