Method: tasklists.insert
יצירת רשימת משימות חדשה והוספתה לרשימות המשימות של המשתמש המאומת. למשתמש יכולות להיות עד 2,000 רשימות בכל פעם.
בקשת HTTP
POST https://tasks.googleapis.com/tasks/v1/users/@me/lists
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
גוף הבקשה
גוף הבקשה מכיל מופע של TaskList
.
גוף התשובה
אם הפעולה בוצעה בהצלחה, גוף התגובה מכיל מופע חדש של TaskList
שנוצר.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/tasks
למידע נוסף, עיינו במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Creates a new task list and adds it to the authenticated user's task lists, with a limit of 2000 lists per user."],["The API utilizes an HTTP POST request to `https://tasks.googleapis.com/tasks/v1/users/@me/lists` to create the list."],["Request and response bodies utilize the `TaskList` object for data structure."],["Requires `https://www.googleapis.com/auth/tasks` OAuth scope for authorization."]]],["This content outlines how to create a new task list for an authenticated user via an API. The core action is to send a `POST` request to `https://tasks.googleapis.com/tasks/v1/users/@me/lists`. The request body must contain a `TaskList` instance, and a successful response will return a new `TaskList` instance. Authorization requires the `https://www.googleapis.com/auth/tasks` OAuth scope. Users can create a maximum of 2000 lists. The URL uses gRPC Transcoding syntax.\n"]]