Sitemaps: submit

需要授權

提交網站 Sitemap。 立即試用

要求

HTTP 要求

PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath

參數

參數名稱 說明
路徑參數
feedpath string 要新增的 Sitemap 網址。例如:http://www.example.com/sitemap.xml
siteUrl string Search Console 中定義的資源網址。例如:http://www.example.com/ (網址前置字元資源) 或 sc-domain:example.com (網域資源)。

授權

這項要求需要下列範圍的授權 (進一步瞭解驗證和授權)。

範圍
https://www.googleapis.com/auth/webmasters

要求主體

請勿使用這個方法提供要求主體。

回應

如果成功,這個方法會傳回空白的回應主體。

試試看!

您可以使用下方的 APIs Explorer,針對即時資料呼叫這個方法,然後查看回應。