I was trying to replicate the entity to entity model described in this document (2nd Page). My questions are -
- 
How do I set the parent when creating the 4th entity EmailService? (I only see a type field in the create entity API)
 - 
While setting Entity to Entity Permission, how do I set ChildRules from the APIs?