Sitemaps: submit
Yetkilendirme gerektiriyor
Bir site için site haritası gönderir.
Şimdi deneyin.
İstek
HTTP isteği
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
Parametreler
Parametre adı |
Değer |
Açıklama |
Yol parametreleri |
feedpath |
string |
Eklenecek site haritasının URL'si. Örneğin: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Search Console'da tanımlandığı şekliyle mülkün URL'si. Örnek:
http://www.example.com/ .
(URL ön eki mülkü),
veya sc-domain:example.com
(Alan mülkü).
|
Yetkilendirme
Bu istek, aşağıdaki kapsamla yetkilendirme gerektiriyor (kimlik doğrulama ve yetkilendirme hakkında daha fazla bilgi edinin).
Kapsam |
https://www.googleapis.com/auth/webmasters |
İstek içeriği
Bu yöntemle istek gövdesi sağlamayın.
Yanıt
Başarılı olursa bu yöntem boş bir yanıt gövdesi döndürür.
Deneyin!
Canlı verilerde bu yöntemi çağırmak ve yanıtı görmek için aşağıdaki API Gezgini'ni kullanın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-23 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-23 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"]]