WebResource: update
अनुमति देना ज़रूरी है
किसी वेबसाइट या डोमेन के मालिकों की सूची में बदलाव करता है.
इसे अभी आज़माएं.
साइट की पुष्टि करने वाला सिस्टम, मालिकों को जोड़ता या हटाता है, ताकि ज़रूरत पड़ने पर वे अपडेट किए गए संसाधन में दी गई, मालिकाना हक वाली सूची से मेल खा सकें. अगर मालिकाना हक की अपडेट की गई सूची, मालिकाना हक की मौजूदा सूची से मेल खाती है, तो कोई बदलाव नहीं किया जाएगा.
सूची से किसी मालिक को हटाने से पहले, पक्का करें कि उस मालिक से जुड़े सभी पुष्टि टोकन हटा दिए गए हों. ऐसा न करने पर, अपडेट को कॉल करने पर एचटीटीपी 400 Bad Request
गड़बड़ी दिखेगी.
ध्यान दें: किसी पुष्टि किए गए उपयोगकर्ता के मालिकाना हक की पुष्टि वापस लेने के लिए, इस तरीके का इस्तेमाल नहीं किया जा सकता. इसके बजाय, delete का तरीका इस्तेमाल करें.
अनुरोध
एचटीटीपी अनुरोध
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
पैरामीटर
पैरामीटर का नाम |
मान |
ब्यौरा |
पाथ पैरामीटर |
id |
string |
किसी पुष्टि की गई साइट या डोमेन का आईडी.
|
अनुमति देना
इस अनुरोध के लिए नीचे दिए गए दायरे के साथ अनुमति की ज़रूरत है (पुष्टि करने और अनुमति देने के बारे में ज़्यादा पढ़ें).
दायरा |
https://www.googleapis.com/auth/siteverification |
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, WebResource संसाधन उपलब्ध कराएं.
जवाब
अगर यह तरीका काम करता है, तो जवाब के मुख्य हिस्से में, अपडेट किया गया WebResource संसाधन दिखाता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]