Hey João,
I'm also having trouble figuring this out.
The link you posted doesn't provide a complete picture. For instance there is no information on how to use the case configuration API.
My goal is to set up user hierarchies for Workflow Builder. I created a backoffice app exposing a rest api which uses ImportUserHierarchy_GetSample that Mai asked about. But i don't know what to pass as argument; what are the type Ids that should be provided as input.