Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Subtask

John Rivs edited this page Aug 9, 2015 · 3 revisions

https://developer.wunderlist.com/documentation/endpoints/subtask

Method Description Arguments
getSubtasks Show all the subtasks in a list or task string $entity array $attributes = []
getSubtask Show a subtask by id int $subtaskId
createSubtask Create a new subtask of a task array $attributes = []
updateSubtask Update a subtask int $subtaskId array $attributes = []
deleteSubtask Delete a subtask int $subtaskId

Examples

$w->getSubtasks('task', [
    'task_id' => 9876
]);
$w->getSubtasks('list', [
    'list_id' => 1234
]);

$w->getSubtask(5555);

$w->createSubtask([
    'task_id' => 9876,
    'title'   => 'Milk'
]);
$w->createSubtask([
    'task_id'   => 9876,
    'title'     => 'Milk',
    'completed' => true // or false
]);

$w->updateSubtask(5555, [
    'title' => 'Cereal'
]);
$w->updateSubtask(5555, [
    'title'     => 'Cereal',
    'completed' => true // or false
]);

$w->deleteSubtask(5555)
Clone this wiki locally