jamasoftware-ps/RestClient

Cannot set parent

Closed this issue · 2 comments

I'd like to set the parent of an Item, but neither itemA.edit().setParent(itemB).commit() nor itemB.addChild(itemA) seem to work.

Good catch! You are now able to edit an item's location by calling itemA.edit().setParent(itemB).commit(); . I believe John and I had settled on this approach, rather than the itemB.addChild(itemA);approach, for modifying an item's location. Do you think it would be useful to have both?

Thanks for implementing this! The current solution works just fine for us, no need to also allow so add the child from the parent.