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
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]