Resource: Task
JSON representation |
---|
{ "kind": string, "id": string, "etag": string, "title": string, "updated": string, "selfLink": string, "parent": string, "position": string, "notes": string, "status": string, "due": string, "completed": string, "deleted": boolean, "hidden": boolean, "links": [ { "type": string, "description": string, "link": string } ] } |
Fields | |
---|---|
kind |
Type of the resource. This is always "tasks#task". |
id |
Task identifier. |
etag |
ETag of the resource. |
title |
Title of the task. |
updated |
Last modification time of the task (as a RFC 3339 timestamp). |
selfLink |
URL pointing to this task. Used to retrieve, update, or delete this task. |
parent |
Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level. |
position |
String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position. |
notes |
Notes describing the task. Optional. |
status |
Status of the task. This is either "needsAction" or "completed". |
due |
Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn't possible to read or write the time that a task is due via the API. |
completed |
Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed. |
deleted |
Flag indicating whether the task has been deleted. The default is False. |
links[] |
Collection of links. This collection is read-only. |
links[].type |
Type of the link, e.g. "email". |
links[].description |
The description. In HTML speak: Everything between <a> and </a>. |
links[].link |
The URL. |
Methods |
|
---|---|
|
Clears all completed tasks from the specified task list. |
|
Deletes the specified task from the task list. |
|
Returns the specified task. |
|
Creates a new task on the specified task list. |
|
Returns all tasks in the specified task list. |
|
Moves the specified task to another position in the task list. |
|
Updates the specified task. |
|
Updates the specified task. |