WebResource: update
認証が必要です
ウェブサイトまたはドメインの所有者のリストを変更します。
実習をご覧ください。
サイト確認システムは、更新されたリソースで指定されたオーナーのリストと一致するように、必要に応じてオーナーを追加または削除します。更新された所有者のリストが現在の所有者のリストと同一である場合、変更は行われません。
リストから所有者を削除する前に、その所有者に関連付けられている確認トークンがすべて削除されていることを確認してください。それ以外の場合、update を呼び出すと HTTP 400 Bad Request
エラーが発生します。
注: このメソッドを使用して、認証済みユーザーのサイト所有権を未確認にすることはできません。代わりに delete メソッドを使用してください。
リクエスト
HTTP リクエスト
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
id |
string |
確認済みのサイトまたはドメインの ID。
|
承認
このリクエストは、次のスコープでの承認が必要です(認証と承認の詳細をご確認ください)。
スコープ |
https://www.googleapis.com/auth/siteverification |
リクエスト本文
リクエストの本文に WebResource リソースを指定します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-09 UTC。
[null,null,["最終更新日 2024-09-09 UTC。"],[[["This method modifies the owner list of a website or domain, updating it to match the provided list."],["Removing an owner requires prior removal of their associated verification tokens to avoid errors."],["Unverifying your own site ownership must be done through a separate method, not this one."],["The request needs authorization with the `https://www.googleapis.com/auth/siteverification` scope."],["Upon success, the method returns the updated WebResource resource."]]],["This action updates a website or domain's owner list. The system will add or remove owners to match the provided list, but no changes occur if the list is unchanged. Before removing an owner, all associated verification tokens must be deleted, or a `400 Bad Request` error will occur. You cannot unverify the authenticated user via this method; use the `delete` method instead. This action is a `PUT` request and requires authorization. It updates the list by the provided `id` in the URL path.\n"]]