Sites: add
認証が必要です
Search Console でユーザーの一連のサイトにサイトを追加します。
実習をご覧ください。
リクエスト
HTTP リクエスト
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
siteUrl |
string |
追加する宿泊施設の 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。"],[[["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"]]