Bonita engine API's with java springboot application

Hi all, I want to create organization from java springboot application and if i add any groups or roles or users it want to reflect in bonita studio organization and also  if i want to add one more layer including groups , roles i may have  department also please help me,