gogol-apps-tasks-0.0.1: Google Tasks SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Tasks.Tasks.Insert

Contents

Description

Creates a new task on the specified task list.

See: Tasks API Reference for tasks.tasks.insert.

Synopsis

REST Resource

type TasksInsertResource = "tasks" :> ("v1" :> ("lists" :> (Capture "tasklist" Text :> ("tasks" :> (QueryParam "parent" Text :> (QueryParam "previous" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Task :> Post `[JSON]` Task)))))))) Source

A resource alias for tasks.tasks.insert method which the TasksInsert request conforms to.

Creating a Request

tasksInsert Source

Creates a value of TasksInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data TasksInsert Source

Creates a new task on the specified task list.

See: tasksInsert smart constructor.

Request Lenses

tiParent :: Lens' TasksInsert (Maybe Text) Source

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

tiPayload :: Lens' TasksInsert Task Source

Multipart request metadata.

tiTaskList :: Lens' TasksInsert Text Source

Task list identifier.

tiPrevious :: Lens' TasksInsert (Maybe Text) Source

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