tasks.tasks.insert
Insert a new task into a specified task list by supplying its title, due date, notes, or other Task fields.
Instructions
Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON Task object accepting assignmentInfo, completed, deleted, due, etag, hidden, id, kind and 9 more fields; pass it via params or whole via body_file Siblings over the same resource: clear, delete, get, list, move, patch, update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| parent | No | [query parameter] Parent task identifier. If the task is created at the top level, this parameter is omitted. An assigned task cannot be a parent task, nor can it have a parent. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| previous | No | [query parameter] Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. | |
| tasklist | Yes | [URL path segment] Task list identifier. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON Task object. | |
| request_body | No | Request body of type Task: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| due | No | ||
| etag | No | ||
| kind | No | ||
| links | No | ||
| notes | No | ||
| title | No | ||
| hidden | No | ||
| parent | No | ||
| status | No | ||
| deleted | No | ||
| updated | No | ||
| position | No | ||
| selfLink | No | ||
| completed | No | ||
| webViewLink | No | ||
| assignmentInfo | No |