Usage of FoldinDefinition (api-interface 11,0.3 API

Hi there!

I'm trying to use the ViewService to create a view (to be save in CMDB).

I have create the "final" object with the createViewWithFoldingDefinition [

I'm now stucked at the error  [Errorcode [2116] Folding definition cannot be empty. ]

What should / could a folding definition contain?

Does anyone have a good example of how to create a view to be saved in CMDB?