Method: users.labels.update
בקשת HTTP
PUT https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד me כדי לציין את המשתמש המאומת.
|
id |
string
מזהה התווית לעדכון.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Label
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Label
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של OAuth:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Updates the specified label using a PUT request to the Gmail API."],["Requires providing the user's email address and the label ID as path parameters."],["The request and response bodies utilize the `Label` object to handle label data."],["Authorization is necessary using one of the specified OAuth scopes related to Gmail access and modification."]]],["This document outlines the process to update a label using a `PUT` HTTP request to the Gmail API. The request targets a specific label via `userId` and `id` path parameters. The `userId` can be the email or 'me' for the authenticated user. The request body uses a `Label` instance, and a successful response returns another `Label` instance. Authorization requires one of three specified OAuth scopes. You can use the specified URL and try it with the provided parameters and body.\n"]]