Method: users.labels.patch
Zastosuj poprawkę do określonej etykiety.
Żądanie HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
userId |
string
Adres e-mail użytkownika. Specjalna wartość me może służyć do wskazania uwierzytelnionego użytkownika.
|
id |
string
Identyfikator etykiety do aktualizacji.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Label
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Label
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
Więcej informacji znajdziesz w przewodniku po autoryzacji.
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-05 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-05 UTC."],[[["This endpoint allows you to update an existing label for a specific user using a PATCH request to the provided URL."],["The request requires path parameters for user ID (`userId`) and label ID (`id`), with the request body containing the updated label information."],["A successful response will return the updated label details."],["Authorization is necessary and requires one of the specified OAuth scopes related to Gmail access and modification."]]],[]]