WebResource: update
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Yetkilendirme gerektiriyor
Bir web sitesinin veya alanın sahip listesini değiştirir.
Şimdi deneyin.
Site Doğrulama sistemi, güncellenen kaynakta sağlanan sahip listesiyle eşleştirmek için gerektiği şekilde sahip ekler veya kaldırır. Güncellenen sahip listesi, mevcut sahip listesiyle aynıysa hiçbir değişiklik yapılmaz.
Bir sahibi listeden kaldırmadan önce bu sahiple ilişkili tüm doğrulama jetonlarının kaldırıldığından emin olun. Aksi takdirde, update çağrısı yapıldığında HTTP 400 Bad Request
hatası gerçekleştirilir.
Not: Kimliği doğrulanmış kullanıcının site sahipliğinin doğrulamasını iptal etmek için bu yöntemi kullanamazsınız. Bunun yerine delete yöntemini kullanın.
İstek
HTTP isteği
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
Parametreler
Parametre adı |
Değer |
Açıklama |
Yol parametreleri |
id |
string |
Doğrulanmış bir sitenin veya alanın kimliği.
|
Yetkilendirme
Bu istek, aşağıdaki kapsamla yetkilendirme gerektiriyor (kimlik doğrulama ve yetkilendirme hakkında daha fazla bilgi edinin).
Kapsam |
https://www.googleapis.com/auth/siteverification |
İstek içeriği
İstek gövdesinde bir WebResource kaynağı sağlayın.
Deneyin!
Canlı verilerde bu yöntemi çağırmak ve yanıtı görmek için aşağıdaki API Gezgini'ni kullanın.
Alternatif olarak şunu da deneyebilirsiniz:
bağımsız
öğrenin.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-09 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]