Method: inventory.partners.merchants.services.create
Creates a new Service
of a merchant managed by the specified aggregator, and returns it.
HTTP request
POST https://mapsbooking.googleapis.com/v1alpha/inventory/{parent=partners/*/merchants/*}/services
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
The parent resource name for the merchant who owns this service, in the format of partners/{partner_id}/merchants/{merchantId} .
|
Query parameters
Parameters |
serviceId |
string
The service id to use for this service.
|
Request body
The request body contains an instance of Service
.
Response body
If successful, the response body contains a newly created instance of Service
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/mapsbooking
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-17 UTC.
[null,null,["Last updated 2024-10-17 UTC."],[[["Creates a new Service for a merchant managed by a specified aggregator."],["Uses an HTTP POST request to `https://mapsbooking.googleapis.com/v1alpha/inventory/{parent=partners/*/merchants/*}/services`."],["Requires specifying the parent merchant in the path and optionally providing a service ID in the query parameters."],["The request body should contain a Service object, and a successful response will return the newly created Service object."],["Authorization requires the `https://www.googleapis.com/auth/mapsbooking` scope."]]],[]]