Method: tasks.insert

Creates a new task on the specified task list.

HTTP request

POST https://tasks.googleapis.com/tasks/v1/lists/{tasklist}/tasks

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
tasklist

string

Task list identifier.

Query parameters

Parameters
parent

string

Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.

previous

string

Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.

Request body

The request body contains an instance of Task.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "resource": {
    object (Task)
  }
}
Fields
resource

object (Task)

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/tasks