Method: inventory.partners.merchants.services.create
Membuat Service
baru dari penjual yang dikelola oleh agregator yang ditentukan, dan menampilkannya.
Permintaan HTTP
POST https://mapsbooking.googleapis.com/v1alpha/inventory/{parent=partners/*/merchants/*}/services
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
parent |
string
Nama resource induk untuk penjual yang memiliki layanan ini, dalam format partners/{partner_id}/merchants/{merchantId} .
|
Parameter kueri
Parameter |
serviceId |
string
ID layanan yang akan digunakan untuk layanan ini.
|
Isi permintaan
Isi permintaan memuat instance Service
.
Isi respons
Jika berhasil, isi respons memuat instance Service
yang baru dibuat.
Cakupan Otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/mapsbooking
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-07-10 UTC.
[null,null,["Terakhir diperbarui pada 2024-07-10 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."]]],[]]