Add use parent option to the REST interface.
Merge pull request #4545 from matz-e/use_parent

Add use parent option to the REST interface.