WebResource: update
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نیاز به مجوز دارد
لیست مالکان یک وب سایت یا دامنه را تغییر می دهد. اکنون آن را امتحان کنید .
سیستم تأیید سایت برای مطابقت با فهرست مالک ارائه شده در منبع به روز شده، مالکان را در صورت نیاز اضافه یا حذف می کند. اگر لیست مالک به روز شده با لیست مالک فعلی یکسان باشد، هیچ تغییری ایجاد نمی شود.
قبل از حذف یک مالک از فهرست، مطمئن شوید که همه نشانههای تأیید مرتبط با آن مالک حذف شدهاند. در غیر این صورت، فراخوانی بهروزرسانی منجر به خطای HTTP 400 Bad Request
میشود.
توجه: نمیتوانید از این روش برای لغو تأیید مالکیت کاربر تأیید شده بر یک سایت استفاده کنید. به جای آن از روش حذف استفاده کنید.
درخواست کنید
درخواست HTTP
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
پارامترها
نام پارامتر | ارزش | توضیحات |
---|
پارامترهای مسیر |
id | string | شناسه یک سایت یا دامنه تأیید شده. |
مجوز
این درخواست به مجوز با محدوده زیر نیاز دارد ( در مورد احراز هویت و مجوز بیشتر بخوانید ).
دامنه |
---|
https://www.googleapis.com/auth/siteverification |
درخواست بدن
در بدنه درخواست، یک منبع WebResource ارائه کنید.
پاسخ
در صورت موفقیت آمیز بودن، این روش منبع WebResource به روز شده را در بدنه پاسخ برمی گرداند.
آن را امتحان کنید!
از APIs Explorer زیر برای فراخوانی این روش در دادههای زنده و دیدن پاسخ استفاده کنید. از طرف دیگر، اکسپلورر مستقل را امتحان کنید.
،
نیاز به مجوز دارد
لیست مالکان یک وب سایت یا دامنه را تغییر می دهد. اکنون آن را امتحان کنید .
سیستم تأیید سایت برای مطابقت با فهرست مالک ارائه شده در منبع به روز شده، مالکان را در صورت نیاز اضافه یا حذف می کند. اگر لیست مالک به روز شده با لیست مالک فعلی یکسان باشد، هیچ تغییری ایجاد نمی شود.
قبل از حذف یک مالک از فهرست، مطمئن شوید که همه نشانههای تأیید مرتبط با آن مالک حذف شدهاند. در غیر این صورت، فراخوانی بهروزرسانی منجر به خطای HTTP 400 Bad Request
میشود.
توجه: نمیتوانید از این روش برای لغو تأیید مالکیت کاربر تأیید شده بر یک سایت استفاده کنید. به جای آن از روش حذف استفاده کنید.
درخواست کنید
درخواست HTTP
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
پارامترها
نام پارامتر | ارزش | توضیحات |
---|
پارامترهای مسیر |
id | string | شناسه یک سایت یا دامنه تأیید شده. |
مجوز
این درخواست به مجوز با محدوده زیر نیاز دارد ( در مورد احراز هویت و مجوز بیشتر بخوانید ).
دامنه |
---|
https://www.googleapis.com/auth/siteverification |
درخواست بدن
در بدنه درخواست، یک منبع WebResource ارائه کنید.
پاسخ
در صورت موفقیت آمیز بودن، این روش منبع WebResource به روز شده را در بدنه پاسخ برمی گرداند.
آن را امتحان کنید!
از APIs Explorer زیر برای فراخوانی این روش در دادههای زنده و دیدن پاسخ استفاده کنید. از طرف دیگر، اکسپلورر مستقل را امتحان کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis method modifies the owner list of a website or domain, updating it to match the provided list.\u003c/p\u003e\n"],["\u003cp\u003eRemoving an owner requires prior removal of their associated verification tokens to avoid errors.\u003c/p\u003e\n"],["\u003cp\u003eUnverifying your own site ownership must be done through a separate method, not this one.\u003c/p\u003e\n"],["\u003cp\u003eThe request needs authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/siteverification\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eUpon success, the method returns the updated WebResource resource.\u003c/p\u003e\n"]]],["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"],null,["# WebResource: update\n\n**Requires [authorization](#auth)**\n\nModifies the list of owners for a website or domain.\n[Try it now](#try-it).\n\nThe 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. \n\nBefore removing an owner from the list, ensure that all verification tokens associated with that owner have been removed. Otherwise, calling [update](#method_siteVerification.webResource.update) results in an HTTP `400 Bad Request` error. \n\nNote: You cannot use this method to unverify the authenticated user's ownership of a site. Use the [delete](#method_siteVerification.webResource.delete) method instead.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/siteVerification/v1/webResource/id\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|--------------------------------------|\n| **Path parameters** |||\n| `id` | `string` | The ID of a verified site or domain. |\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/site-verification/v1/getting_started#auth)).\n\n| Scope |\n|----------------------------------------------------|\n| `https://www.googleapis.com/auth/siteverification` |\n\n### Request body\n\nIn the request body, supply a [WebResource resource](/site-verification/v1/webResource#resource).\n\nResponse\n--------\n\n\u003cbr /\u003e\n\nIf successful, this method returns the updated [WebResource resource](/site-verification/v1/webResource#resource) in the response body.\n\n\u003cbr /\u003e\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/siteVerification/v1/siteVerification.webResource.update)."]]