# Add new badges

**URL:** https://meta.discourse.org/t/add-new-badges/254304
**Category:** Support
**Tags:** badges
**Created:** [February 7, 2023, 7:04am UTC](https://meta.discourse.org/t/add-new-badges/254304 "2023-02-07T07:04:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![NoamH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noamh/32/289521_2.png) [@NoamH](https://meta.discourse.org/u/NoamH)
#### Post date: [February 7, 2023, 7:04am UTC](https://meta.discourse.org/t/add-new-badges/254304/1 "2023-02-07T07:04:30Z")

</div>

Is there a way to add 30 new badges at once? from excel maybe?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 7, 2023, 12:47pm UTC](https://meta.discourse.org/t/add-new-badges/254304/2 "2023-02-07T12:47:13Z")

</div>

Hello Noam 👋

There is currently no way to add multiple badges at once through the interface.  
I think the best way would be to create a script that will load a data file (CSV or anything else as long as you can easily parse the data) and use Discourse’s API to create the badges.

It would do a POST request to `https://www.your-discourse.com/admin/badges.json` using the following JSON payload, for example:

```js
{
	"allow_title": true,
	"multiple_grant": true,
	"listable": true,
	"auto_revoke": false,
	"enabled": true,
	"show_posts": true,
	"target_posts": false,
	"name": "Test badge",
	"description": "Badge desc",
	"long_description": "Badge long desc",
	"icon": "air-freshener",
	"badge_grouping_id": 5,
	"badge_type_id": 1
}

```

Does such a solution sound good to you?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 9, 2023, 12:47pm UTC](https://meta.discourse.org/t/add-new-badges/254304/3 "2023-03-09T12:47:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
