Moving a folder within the DataSource

I am trying to move a folder in my datasource using aaApi_SetParentProject(childId, parentId).  It doesn't matter what projectId I use for the parent, it always moves the folder to the very top of my documents tree.  What am I doing wrong?