Method: tasklists.insert
Erstellt eine neue Aufgabenliste und fügt sie den Aufgabenlisten des authentifizierten Nutzers hinzu. Ein Nutzer kann bis zu 2.000 Listen gleichzeitig haben.
HTTP-Anfrage
POST https://tasks.googleapis.com/tasks/v1/users/@me/lists
Die URL verwendet die Syntax der gRPC-Transcodierung.
Anfragetext
Der Anfragetext enthält eine Instanz von TaskList
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von TaskList
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/tasks
Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-05 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]