# I need to mass-create groups using the API

**URL:** <https://meta.discourse.org/t/i-need-to-mass-create-groups-using-the-api/241055>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [October 5, 2022, 6:56pm UTC](https://meta.discourse.org/t/i-need-to-mass-create-groups-using-the-api/241055 "2022-10-05T18:56:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 5, 2022, 7:13pm UTC](https://meta.discourse.org/t/i-need-to-mass-create-groups-using-the-api/241055/2 "2022-10-05T19:13:31Z")

</div>

It looks to me like it’s called `createGroup` not `createGroups`. It says that it “Creates a group” not “Creates as many groups as you want.”

You’ll need to loop through the values yourself and call it for each group you want to add. You probably want to either insert some delay or build in code that will re-try when you hit rate limits.

---

_[View the full topic](https://meta.discourse.org/t/i-need-to-mass-create-groups-using-the-api/241055)._
