Things Groups and Child Devices

Does anyone know if there is there a way to create a group from a SmartApp (Service Manager) and automatically put the child devices into it?