Method: users.labels.patch
בקשת HTTP
PATCH 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)."],[[["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."]]],[]]