Sitemaps: submit
認証が必要です
サイトのサイトマップを送信します。
実習をご覧ください。
リクエスト
HTTP リクエスト
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
feedpath |
string |
追加するサイトマップの URL。例: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Search Console で定義されているプロパティの URL。次に例を示します。
http://www.example.com/
(URL プレフィックスプロパティ)
または sc-domain:example.com
(ドメイン プロパティ)。
|
承認
このリクエストは、次のスコープでの承認が必要です(認証と承認の詳細をご確認ください)。
スコープ |
https://www.googleapis.com/auth/webmasters |
リクエスト本文
このメソッドをリクエストの本文に含めないでください。
レスポンス
成功した場合、このメソッドは空のレスポンス本文を返します。
試してみよう:
以下の API Explorer を使用して、ライブデータに対してこのメソッドを呼び出し、レスポンスを確認してください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-26 UTC。
[null,null,["最終更新日 2024-08-26 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"]]