Method: users.labels.patch
Belirtilen etikete yama uygulayın.
HTTP isteği
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
userId |
string
Kullanıcının e-posta adresi. me özel değeri, kimliği doğrulanmış kullanıcıyı belirtmek için kullanılabilir.
|
id |
string
Güncellenecek etiketin kimliği.
|
İstek içeriği
İstek metni, Label
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Label
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
Daha fazla bilgi için Yetkilendirme kılavuzuna göz atın.
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-05 UTC.
[null,null,["Son güncelleme tarihi: 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"]]