# Discourse API Gem - how to create topic with tags?

**URL:** https://meta.discourse.org/t/discourse-api-gem-how-to-create-topic-with-tags/156869
**Category:** Support
**Created:** [July 6, 2020, 3:31am UTC](https://meta.discourse.org/t/discourse-api-gem-how-to-create-topic-with-tags/156869 "2020-07-06T03:31:54Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [July 6, 2020, 3:17pm UTC](https://meta.discourse.org/t/discourse-api-gem-how-to-create-topic-with-tags/156869/5 "2020-07-06T15:17:40Z")

</div>

It needs this format:

> [@How find tags id to add tags when create topic via API](https://meta.discourse.org/t/how-find-tags-id-to-add-tags-when-create-topic-via-api/84387/4):
>
> You should try like `tags[]="testtag"` . It’s an array type.

But how to do that with the gem?

---

_[View the full topic](https://meta.discourse.org/t/discourse-api-gem-how-to-create-topic-with-tags/156869)._
