blob: 6c5fc4d683f961be63b5162db3f74a7679fa1ebc [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="tasks_v1.html">Tasks API</a> . <a href="tasks_v1.tasks.html">tasks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#clear">clear(tasklist)</a></code></p>
79<p class="firstline">Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(tasklist, task)</a></code></p>
82<p class="firstline">Deletes the specified task from the task list.</p>
83<p class="toc_element">
84 <code><a href="#get">get(tasklist, task)</a></code></p>
85<p class="firstline">Returns the specified task.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(tasklist, body=None, parent=None, previous=None)</a></code></p>
88<p class="firstline">Creates a new task on the specified task list. Fails with HTTP code 403 or 429 after reaching the storage limit of 100,000 tasks per account.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 <code><a href="#list">list(tasklist, showCompleted=None, dueMin=None, dueMax=None, pageToken=None, updatedMin=None, showDeleted=None, completedMax=None, maxResults=None, completedMin=None, showHidden=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Returns all tasks in the specified task list.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#move">move(tasklist, task, parent=None, previous=None)</a></code></p>
97<p class="firstline">Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#patch">patch(tasklist, task, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400100<p class="firstline">Updates the specified task. This method supports patch semantics.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#update">update(tasklist, task, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400103<p class="firstline">Updates the specified task.</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="clear">clear(tasklist)</code>
107 <pre>Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.
108
109Args:
110 tasklist: string, Task list identifier. (required)
111</pre>
112</div>
113
114<div class="method">
115 <code class="details" id="delete">delete(tasklist, task)</code>
116 <pre>Deletes the specified task from the task list.
117
118Args:
119 tasklist: string, Task list identifier. (required)
120 task: string, Task identifier. (required)
121</pre>
122</div>
123
124<div class="method">
125 <code class="details" id="get">get(tasklist, task)</code>
126 <pre>Returns the specified task.
127
128Args:
129 tasklist: string, Task list identifier. (required)
130 task: string, Task identifier. (required)
131
132Returns:
133 An object of the form:
134
135 {
136 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
137 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
138 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
139 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 "links": [ # Collection of links. This collection is read-only.
141 {
142 "type": "A String", # Type of the link, e.g. "email".
143 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 },
146 ],
John Asmuth614db982014-04-24 15:46:26 -0400147 "title": "A String", # Title of the task.
148 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
149 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700150 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400151 "etag": "A String", # ETag of the resource.
152 "notes": "A String", # Notes describing the task. Optional.
153 "position": "A String", # 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.
154 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
155 "id": "A String", # Task identifier.
156 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
157 }</pre>
158</div>
159
160<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 <code class="details" id="insert">insert(tasklist, body=None, parent=None, previous=None)</code>
162 <pre>Creates a new task on the specified task list. Fails with HTTP code 403 or 429 after reaching the storage limit of 100,000 tasks per account.
John Asmuth614db982014-04-24 15:46:26 -0400163
164Args:
165 tasklist: string, Task list identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700166 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400167 The object takes the form of:
168
169{
170 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
171 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
172 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
173 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700174 "links": [ # Collection of links. This collection is read-only.
175 {
176 "type": "A String", # Type of the link, e.g. "email".
177 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700178 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 },
180 ],
John Asmuth614db982014-04-24 15:46:26 -0400181 "title": "A String", # Title of the task.
182 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
183 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400185 "etag": "A String", # ETag of the resource.
186 "notes": "A String", # Notes describing the task. Optional.
187 "position": "A String", # 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.
188 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
189 "id": "A String", # Task identifier.
190 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
191 }
192
193 parent: string, Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.
194 previous: string, Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
195
196Returns:
197 An object of the form:
198
199 {
200 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
201 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
202 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
203 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700204 "links": [ # Collection of links. This collection is read-only.
205 {
206 "type": "A String", # Type of the link, e.g. "email".
207 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700208 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
210 ],
John Asmuth614db982014-04-24 15:46:26 -0400211 "title": "A String", # Title of the task.
212 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
213 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700214 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400215 "etag": "A String", # ETag of the resource.
216 "notes": "A String", # Notes describing the task. Optional.
217 "position": "A String", # 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.
218 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
219 "id": "A String", # Task identifier.
220 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
221 }</pre>
222</div>
223
224<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 <code class="details" id="list">list(tasklist, showCompleted=None, dueMin=None, dueMax=None, pageToken=None, updatedMin=None, showDeleted=None, completedMax=None, maxResults=None, completedMin=None, showHidden=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400226 <pre>Returns all tasks in the specified task list.
227
228Args:
229 tasklist: string, Task list identifier. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 showCompleted: boolean, Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
231 dueMin: string, Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
John Asmuth614db982014-04-24 15:46:26 -0400232 dueMax: string, Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
233 pageToken: string, Token specifying the result page to return. Optional.
234 updatedMin: string, Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
235 showDeleted: boolean, Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
236 completedMax: string, Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 maxResults: string, Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).
238 completedMin: string, Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
John Asmuth614db982014-04-24 15:46:26 -0400239 showHidden: boolean, Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
240
241Returns:
242 An object of the form:
243
244 {
245 "nextPageToken": "A String", # Token used to access the next page of this result.
246 "items": [ # Collection of tasks.
247 {
248 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
249 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
250 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
251 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700252 "links": [ # Collection of links. This collection is read-only.
253 {
254 "type": "A String", # Type of the link, e.g. "email".
255 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700256 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 },
258 ],
John Asmuth614db982014-04-24 15:46:26 -0400259 "title": "A String", # Title of the task.
260 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
261 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400263 "etag": "A String", # ETag of the resource.
264 "notes": "A String", # Notes describing the task. Optional.
265 "position": "A String", # 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.
266 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
267 "id": "A String", # Task identifier.
268 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
269 },
270 ],
271 "kind": "tasks#tasks", # Type of the resource. This is always "tasks#tasks".
272 "etag": "A String", # ETag of the resource.
273 }</pre>
274</div>
275
276<div class="method">
277 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
278 <pre>Retrieves the next page of results.
279
280Args:
281 previous_request: The request for the previous page. (required)
282 previous_response: The response from the request for the previous page. (required)
283
284Returns:
285 A request object that you can call 'execute()' on to request the next
286 page. Returns None if there are no more items in the collection.
287 </pre>
288</div>
289
290<div class="method">
291 <code class="details" id="move">move(tasklist, task, parent=None, previous=None)</code>
292 <pre>Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.
293
294Args:
295 tasklist: string, Task list identifier. (required)
296 task: string, Task identifier. (required)
297 parent: string, New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.
298 previous: string, New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.
299
300Returns:
301 An object of the form:
302
303 {
304 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
305 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
306 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
307 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308 "links": [ # Collection of links. This collection is read-only.
309 {
310 "type": "A String", # Type of the link, e.g. "email".
311 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700312 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 },
314 ],
John Asmuth614db982014-04-24 15:46:26 -0400315 "title": "A String", # Title of the task.
316 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
317 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700318 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400319 "etag": "A String", # ETag of the resource.
320 "notes": "A String", # Notes describing the task. Optional.
321 "position": "A String", # 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.
322 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
323 "id": "A String", # Task identifier.
324 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
325 }</pre>
326</div>
327
328<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 <code class="details" id="patch">patch(tasklist, task, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400330 <pre>Updates the specified task. This method supports patch semantics.
331
332Args:
333 tasklist: string, Task list identifier. (required)
334 task: string, Task identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700335 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400336 The object takes the form of:
337
338{
339 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
340 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
341 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
342 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 "links": [ # Collection of links. This collection is read-only.
344 {
345 "type": "A String", # Type of the link, e.g. "email".
346 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700347 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 },
349 ],
John Asmuth614db982014-04-24 15:46:26 -0400350 "title": "A String", # Title of the task.
351 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
352 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400354 "etag": "A String", # ETag of the resource.
355 "notes": "A String", # Notes describing the task. Optional.
356 "position": "A String", # 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.
357 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
358 "id": "A String", # Task identifier.
359 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
360 }
361
362
363Returns:
364 An object of the form:
365
366 {
367 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
368 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
369 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
370 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 "links": [ # Collection of links. This collection is read-only.
372 {
373 "type": "A String", # Type of the link, e.g. "email".
374 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700375 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376 },
377 ],
John Asmuth614db982014-04-24 15:46:26 -0400378 "title": "A String", # Title of the task.
379 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
380 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700381 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400382 "etag": "A String", # ETag of the resource.
383 "notes": "A String", # Notes describing the task. Optional.
384 "position": "A String", # 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.
385 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
386 "id": "A String", # Task identifier.
387 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
388 }</pre>
389</div>
390
391<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700392 <code class="details" id="update">update(tasklist, task, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400393 <pre>Updates the specified task.
394
395Args:
396 tasklist: string, Task list identifier. (required)
397 task: string, Task identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700398 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400399 The object takes the form of:
400
401{
402 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
403 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
404 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
405 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 "links": [ # Collection of links. This collection is read-only.
407 {
408 "type": "A String", # Type of the link, e.g. "email".
409 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700410 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 },
412 ],
John Asmuth614db982014-04-24 15:46:26 -0400413 "title": "A String", # Title of the task.
414 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
415 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700416 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400417 "etag": "A String", # ETag of the resource.
418 "notes": "A String", # Notes describing the task. Optional.
419 "position": "A String", # 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.
420 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
421 "id": "A String", # Task identifier.
422 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
423 }
424
425
426Returns:
427 An object of the form:
428
429 {
430 "status": "A String", # Status of the task. This is either "needsAction" or "completed".
431 "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
432 "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
433 "parent": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700434 "links": [ # Collection of links. This collection is read-only.
435 {
436 "type": "A String", # Type of the link, e.g. "email".
437 "link": "A String", # The URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700438 "description": "A String", # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 },
440 ],
John Asmuth614db982014-04-24 15:46:26 -0400441 "title": "A String", # Title of the task.
442 "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
443 "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700444 "due": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400445 "etag": "A String", # ETag of the resource.
446 "notes": "A String", # Notes describing the task. Optional.
447 "position": "A String", # 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.
448 "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
449 "id": "A String", # Task identifier.
450 "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
451 }</pre>
452</div>
453
454</body></html>