Sitemaps: submit
Wymaga autoryzacji
Przesyła mapę witryny.
Wypróbuj
Żądanie
Żądanie HTTP
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
Parametry
Nazwa parametru |
Wartość |
Opis |
Parametry ścieżki |
feedpath |
string |
Adres URL mapy witryny, którą chcesz dodać. Na przykład: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Adres URL usługi określony w Search Console. Na przykład:
http://www.example.com/
(usługa z prefiksem URL),
lub sc-domain:example.com
(usługę Domena).
|
Autoryzacja
To żądanie wymaga autoryzacji w ramach tego zakresu (więcej informacji o uwierzytelnianiu i autoryzacji).
Zakres |
https://www.googleapis.com/auth/webmasters |
Treść żądania
Nie podawaj treści żądania przy użyciu tej metody.
Odpowiedź
Jeśli operacja się uda, ta metoda zwróci pustą treść odpowiedzi.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-23 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]