DraftTask change parent programatically

Copper Contributor

Hi ,
I try to move a Project server Task by REST API using the draftTask object and REST API.
I try to do so by changing values of properties ParentID, WorkBreakdownStructure, OutlinePosition, but the Task doesn't want to move in project Server.

I use this API an MERGE operation on uri https://xxxxx.sharepoint.com/sites/xxxxx/api/ProjectServer/[ProjectId]/Draft/Tasks([TaskId])
with this body
{
"
_metadata": { "type": "PS.DraftTask" },
'Name':'NewName',
'WorkBreakdownStructure':'[ParentOutlinePosition].1',
'OutlinePosition':'[ParentOutlinePosition].1',
'ParentId':'[ParentGuid]',
}
In my sample, Only the Name change

0 Replies