Sites: add
需要授權
將網站新增至 Search Console 的使用者網站群組。
立即試用。
要求
HTTP 要求
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl
參數
參數名稱 |
值 |
說明 |
路徑參數 |
siteUrl |
string |
要新增的資源網址。示例:
http://www.example.com/ (用於網址前置字元資源) 或
sc-domain:example.com (用於網域資源)
|
授權
此要求需要獲得下列範圍的授權 (進一步瞭解驗證和授權)。
範圍 |
https://www.googleapis.com/auth/webmasters |
要求主體
請勿使用這個方法提供請求主體。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-24 (世界標準時間)。
[null,null,["上次更新時間:2024-08-24 (世界標準時間)。"],[[["Adds a website to the user's Search Console account, allowing it to be managed and monitored."],["Uses a PUT request to the specified endpoint with the website URL as a path parameter."],["Requires authorization with the `https://www.googleapis.com/auth/webmasters` scope."],["The request body should be empty, and a successful response will also be empty."]]],["This content describes adding a site to a user's Search Console. A `PUT` request to `https://www.googleapis.com/webmasters/v3/sites/siteUrl` is required, with the `siteUrl` path parameter specifying the site's URL (e.g., `http://www.example.com/` or `sc-domain:example.com`). Authorization using the `https://www.googleapis.com/auth/webmasters` scope is mandatory. No request body is needed, and a successful request returns an empty response body. The content refers to using the API Explorer to test the request.\n"]]