WebResource: update
Wymaga autoryzacji
Modyfikuje listę właścicieli witryny lub domeny.
Wypróbuj
System weryfikacji witryn dodaje lub usuwa właścicieli odpowiednio do potrzeb użytkowników na liście właścicieli podanej w zaktualizowanym zasobie. Jeśli zaktualizowana lista właścicieli jest identyczna z bieżącą listą właścicieli, nie spowoduje to żadnych zmian.
Zanim usuniesz właściciela z listy, upewnij się, że wszystkie powiązane z nim tokeny weryfikacyjne zostały usunięte. W przeciwnym razie wywołanie update spowoduje błąd HTTP 400 Bad Request
.
Uwaga: nie możesz użyć tej metody do cofnięcia weryfikacji prawa własności uwierzytelnionego użytkownika do witryny. Zamiast tego użyj metody delete.
Żądanie
Żądanie HTTP
PUT https://www.googleapis.com/siteVerification/v1/webResource/id
Parametry
Nazwa parametru |
Wartość |
Opis |
Parametry ścieżki |
id |
string |
Identyfikator zweryfikowanej witryny lub domeny.
|
Autoryzacja
To żądanie wymaga autoryzacji w ramach tego zakresu (więcej informacji o uwierzytelnianiu i autoryzacji).
Zakres |
https://www.googleapis.com/auth/siteverification |
Treść żądania
W treści żądania podaj zasób WebResource.
Odpowiedź
Jeśli operacja się uda, metoda zwróci zaktualizowany zasób WebResource w treści odpowiedzi.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-09 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]