Scene Outliner programming?

Is there a C++ interface to modify the outliner content, eg creating folders, copy, move, rename items/assets?

waking up this

+1

I want to be able to find the selected folders in the scene outliner somehow

+1