WebResource: update
Requires authorization
Modifies the list of owners for a website or domain.
Try it now.
The Site Verification system adds or removes owners as needed to match the owner list provided in the updated resource. No changes are made if the updated owner list is identical to the current owner list.
Before removing an owner from the list, ensure that all verification tokens associated with that owner have been removed. Otherwise, calling update results in an HTTP 400 Bad Request
error.
Note: You cannot use this method to unverify the authenticated user's ownership of a site. Use the delete method instead.
Request
HTTP request
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
Parameters
Parameter name |
Value |
Description |
Path parameters |
id |
string |
The ID of a verified site or domain.
|
Authorization
This request requires authorization with the following scope (read more about authentication and authorization).
Scope |
https://www.googleapis.com/auth/siteverification |
Request body
In the request body, supply a WebResource resource.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-11 UTC.
[null,null,["Last updated 2024-06-11 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"]]