Method: users.labels.patch
Appliquer un correctif au libellé spécifié.
Requête HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
userId |
string
Adresse e-mail de l'utilisateur. La valeur spéciale me peut être utilisée pour indiquer l'utilisateur authentifié.
|
id |
string
ID du libellé à mettre à jour.
|
Corps de la requête
Le corps de la requête contient une instance Label
.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient une instance de Label
.
Champs d'application des autorisations
Nécessite l'un des champs d'application OAuth suivants :
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
Pour en savoir plus, consultez le guide relatif aux autorisations.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/09/05 (UTC).
[null,null,["Dernière mise à jour le 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"]]