Sitemaps: submit
Memerlukan otorisasi
Mengirim peta situs untuk situs.
Coba sekarang.
Permintaan
Permintaan HTTP
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
Parameter
Nama parameter |
Nilai |
Deskripsi |
Parameter jalur |
feedpath |
string |
URL peta situs yang akan ditambahkan. Contoh: http://www.example.com/sitemap.xml
|
siteUrl |
string |
URL properti seperti yang ditentukan di Search Console. Contoh:
http://www.example.com/
(Properti awalan URL),
atau sc-domain:example.com
(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.
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."],[[["Submits a sitemap URL to Google Search Console for a specified site."],["Uses a PUT request to the `https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath` endpoint."],["Requires authorization with the `https://www.googleapis.com/auth/webmasters` scope."],["Includes path parameters for `feedpath` (sitemap URL) and `siteUrl` (website URL)."],["Returns an empty response body upon successful submission."]]],["This content outlines the process for submitting a sitemap to a website using the Webmasters API. It requires authorization with the `https://www.googleapis.com/auth/webmasters` scope. The process involves sending a PUT request to a specific URL, including the `siteUrl` and the `feedpath` (sitemap URL) as parameters. No request body is needed. Successful submission results in an empty response body. The provided link allows to test the process live.\n"]]