# Create dynamic Tag Group at topic level?

**URL:** https://meta.discourse.org/t/create-dynamic-tag-group-at-topic-level/365584
**Category:** Feature
**Tags:** tags, tag-groups
**Created:** [May 10, 2025, 12:54pm UTC](https://meta.discourse.org/t/create-dynamic-tag-group-at-topic-level/365584 "2025-05-10T12:54:40Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 11, 2025, 1:07am UTC](https://meta.discourse.org/t/create-dynamic-tag-group-at-topic-level/365584/2 "2025-05-11T01:07:40Z")

</div>

There is this code I found that can create tags uskng code:

> [@\[API\] Cleaner way to create a tag?](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526/12):
>
> the undocumented api `/tags/upload.json`, used by the `Upload Tags` menu. Use it like this:
> 
> ```javascript
> const tags = ['tag1', 'tag2']
> const file = new Blob([tags.join('n')], { type: 'text/plain' })
> const formData = new FormData()
> formData.append('file', file)
> $.ajax({
> type: 'POST',
> url: '/tags/upload.json',
> data: formData,
> contentType: false,
> processData: false
> })
> 
> ```

You could make an API call to get the topic’s poster, which will be the company’s name.

The trickier bit is adding the tag to the tag group. I don’t see a way to this this programmatically as of now…

---

_[View the full topic](https://meta.discourse.org/t/create-dynamic-tag-group-at-topic-level/365584)._
