During partner summit this question has not been answered due to short time.
If the question doesn't meet the intention of original creator, please make it more precise by commenting.
We don't offer any API for building a schema. Please use the designer.
If the structure-definition for the virtual folder structure is meant, then the desired information can be found here https://developer.enaio.org/pages/viewpage.action?pageId=11436243