Asana::updateTaskParent PHP Method

updateTaskParent() public method

Updated the parent from a task.
public updateTaskParent ( string $taskId, string $parentId, array $opts = [] ) : string
$taskId string The task to update
$parentId string The id of the new parent task.
$opts array Array of options to pass (@see https://asana.com/developers/documentation/getting-started/input-output-options)
return string JSON or null
    public function updateTaskParent($taskId, $parentId, array $opts = array())
    {
        $data = array('data' => array('parent' => $parentId));
        $data = json_encode($data);
        $options = http_build_query($opts);
        return $this->askAsana($this->taskUrl . '/' . $taskId . '/setParent?' . $options, $data, ASANA_METHOD_POST);
    }