LiquidPlanner Classic Forum
404 error when updating low_effort_time and high_effort_time
*Posted on behalf of Ando Gala. Original posting date 2015-03-23.*
Hello you all,
I'm stucked updating the values of both low_effort_time and high_effort_time. I read https://developer.liquidplanner.com/docs/liquidplanner-api-examples the API that this should be done with this uri
'https://app.liquidplanner.com/api/workspaces/:id/treeitems/:id/update_assignment';
I receive a 404 error when this uri is processed. Any help with this, please.
Thank you
PS: I'm working with VB.NET (I used and modified the VB.net code that is available on this link https://developer.liquidplanner.com/docs/liquidplanner-api-examples and I've been able to create new tasks with estimates, but this one is getting way over my head.
PS2: Could be a problem to update this values for a virtual assignee??
404 error was when I tried to make a PUT... when I do a POST the error is a 400 Bad Request error.
Posted by LiquidPlanner Support about 5 years ago
Able to add assignments to new task but can't set effort remaining
*Posted on behalf of steve seeley. Original posting date 2015-01-22.*
In php when creating a new task I'm setting the 'assignments' property to an array of hashes. Each hash in the array is a single assignment (person and estimate). I'm successful in creating the assignments for the new task. But the estimates are not being set. As you can see below I've tried several different effort parameter names and formats (low vs. low_effort vs. low_effort_remaining). What is the proper format?
```
$newTaskAssignments = array();
```
```
foreach ($templateAssignments as $assignment) {
$personId = $assignment->person_id == 0 ? $this->projectOwner->id : $assignment->person_id;
//$newTaskAssignments[] = array('person_id' => $personId, "low" => $assignment->low_effort_remaining, "high" => $assignment->high_effort_remaining);
//$newTaskAssignments[] = array('person_id' => $personId, "low_effort" => $assignment->low_effort_remaining, "high_effort" => $assignment->high_effort_remaining);
//$newTaskAssignments[] = array('person_id' => $personId, "low_effort_remaining" => $assignment->low_effort_remaining, "high_effort_remaining" => $assignment->high_effort_remaining);
$newTaskAssignments[] = array('person_id' => $personId, "low_effort_remaining" => "{$assignment->low_effort_remaining}h", "high_effort_remaining" => "{$assignment->high_effort_remaining}h");
}
```
Posted by LiquidPlanner Support about 5 years ago
Can I update the track_time of person_id 0
*Posted on behalf of Graves, Mark. Original posting date 2015-01-22.*
Sometimes we have tasks that have yet to be assigned, but we'd like to be able to update those tasks to have correct remaining effort values (using track_time). In my testing, I believe I'm getting a "Bad Request 404" error when I try to update the remaining effort values for an unassigned task. Is this your intent?
Posted by LiquidPlanner Support about 5 years ago
How to set estimates on a task?
*Posted on behalf of Patrik Peltonen. Original posting date 2015-01-14.*
Hi!,
Im trying to set estimates on a task but i only get returned with: 500 Internal Server Error.
Is this the correct way to do it?
```
curl https://app.liquidplanner.com/api/workspaces/:workspace_id/treeitems/:treeitem_id/track_time
-d '{ low: "20h", high: "40h" }'
```
Posted by LiquidPlanner Support about 5 years ago
How can I get the data for a remaining chart?
*Posted on behalf of Csaba Sandor. Original posting date 2014-09-18.*
Hi,
I would like to create a LP plugin in our dashbord application. We have a high chart engine in it. I would like to show a remaining work chart on the dashboard. My question is that how could I get the data for charts?
Thanks,
Csaba Sandor
Posted by LiquidPlanner Support about 5 years ago