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 资源。
试试看!
请使用下面的 API Explorer 针对实际数据调用此方法并查看响应。
或者,您也可以尝试
独立广告
Explorer。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-09。
[null,null,["最后更新时间 (UTC):2024-09-09。"],[[["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"]]