Sites: add
Memerlukan otorisasi
Menambahkan situs ke kumpulan situs pengguna di Search Console.
Coba sekarang.
Permintaan
Permintaan HTTP
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl
Parameter
Nama parameter |
Nilai |
Deskripsi |
Parameter jalur |
siteUrl |
string |
URL properti yang akan ditambahkan. Contoh:
http://www.example.com/ (untuk properti awalan URL) atau
sc-domain:example.com (untuk Properti domain)
|
Otorisasi
Permintaan ini memerlukan otorisasi dengan cakupan berikut (baca lebih lanjut tentang autentikasi dan otorisasi).
Cakupan |
https://www.googleapis.com/auth/webmasters |
Isi permintaan
Jangan berikan isi permintaan dengan metode ini.
Respons
Jika berhasil, metode ini akan menampilkan isi respons kosong.
Cobalah!
Gunakan APIs Explorer di bawah untuk memanggil metode ini pada data langsung dan melihat responsnya.
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-08-29 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-29 UTC."],[[["Adds a website to the user's Search Console account, allowing it to be managed and monitored."],["Uses a PUT request to the specified endpoint with the website URL as a path parameter."],["Requires authorization with the `https://www.googleapis.com/auth/webmasters` scope."],["The request body should be empty, and a successful response will also be empty."]]],["This content describes adding a site to a user's Search Console. A `PUT` request to `https://www.googleapis.com/webmasters/v3/sites/siteUrl` is required, with the `siteUrl` path parameter specifying the site's URL (e.g., `http://www.example.com/` or `sc-domain:example.com`). Authorization using the `https://www.googleapis.com/auth/webmasters` scope is mandatory. No request body is needed, and a successful request returns an empty response body. The content refers to using the API Explorer to test the request.\n"]]