I need to mass-create groups using the API

That doesn’t make sense, as the API is what the front end uses to create groups. Since it’s possible to create full names on the ux, you can create them in the API.

That’s how group names work.