Method: users.labels.patch
Applica la patch all'etichetta specificata.
Richiesta HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
userId |
string
L'indirizzo email dell'utente. È possibile utilizzare il valore speciale me per indicare l'utente autenticato.
|
id |
string
L'ID dell'etichetta da aggiornare.
|
Corpo della richiesta
Il corpo della richiesta contiene un'istanza di Label
.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Label
.
Ambiti di autorizzazione
Richiede uno dei seguenti ambiti OAuth:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
Per ulteriori informazioni, consulta la Guida alle autorizzazioni.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-09-05 UTC.
[null,null,["Ultimo aggiornamento 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."]]],["This document details how to patch a label using the Gmail API. A `PATCH` HTTP request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}`, where `userId` is the user's email (or \"me\") and `id` is the label's ID. The request body contains the updated `Label` data. Successful requests return the updated `Label` in the response body. The operation requires one of three specified OAuth scopes for authorization.\n"]]