Group names don’t seem to be unique . Based on the admin API in the link below this call should update if the group exists and create otherwise. This does not seem to be the behavior.  It creates a new group with a different id. Is there a way to enforce unique group names?

create or add a top level realm groupSet or create child.