NAME
Google::RestApi::TasksApi1::Task - Task object for Google Tasks.
SYNOPSIS
# Create a task
my $task = $tl->create_task(
title => 'Buy groceries',
notes => 'Milk, eggs, bread',
due => '2026-03-01T00:00:00.000Z',
);
# Get task details
my $details = $task->get();
# Update task
$task->update(title => 'Buy groceries and snacks');
# Complete/uncomplete
$task->complete();
$task->uncomplete();
# Move task (make it a subtask or reorder)
$task->move(parent => 'parent_task_id');
$task->move(previous => 'sibling_task_id');
# Delete task
$task->delete();
DESCRIPTION
Represents a task in a Google Task List. Supports creating, reading, updating, deleting, moving, completing, and uncompleting tasks.
METHODS
get(fields => $fields)
Gets task details. Requires task ID.
update(title => $text, notes => $text, due => $date, status => $status)
Updates task properties. Requires task ID.
delete()
Deletes the task. Requires task ID.
move(parent => $id, previous => $id, destination_tasklist => $id)
Moves the task. Use parent to make it a subtask, previous to reorder, or destination_tasklist to move to another list. Requires task ID.
complete()
Marks the task as completed. Requires task ID.
uncomplete()
Marks the task as needing action (not completed). Requires task ID.
task_id()
Returns the task ID.
task_list()
Returns the parent TaskList object.
tasks_api()
Returns the TasksApi1 object.
AUTHORS
Robin Murray mvsjes@cpan.org
COPYRIGHT
Copyright (c) 2019-2026 Robin Murray. All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.