Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new task on the specified task list.
See: Tasks API Reference for tasks.tasks.insert
.
- type TasksInsertResource = "tasks" :> ("v1" :> ("lists" :> (Capture "tasklist" Text :> ("tasks" :> (QueryParam "parent" Text :> (QueryParam "previous" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Task :> Post `[JSON]` Task))))))))
- tasksInsert :: Task -> Text -> TasksInsert
- data TasksInsert
- tiParent :: Lens' TasksInsert (Maybe Text)
- tiPayload :: Lens' TasksInsert Task
- tiTaskList :: Lens' TasksInsert Text
- tiPrevious :: Lens' TasksInsert (Maybe Text)
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
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.