# \[API\] Cleaner way to create a tag?

**URL:** <https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [21 september 2017 om 16:52 UTC](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526 "2017-09-21T16:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [21 september 2017 om 19:27 UTC](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526/4 "2017-09-21T19:27:59Z")

</div>

> [@jack2](#):
>
> I guess this would be a legit use case. But mine is less legit: I use tags to store metadata (object ids from an external app).

Yeah, that’s not a good idea, especially if each tag is only used once.

You should either have a separate database mapping the external IDs to Discourse topic IDs, or write a plugin and use topic custom fields (this is a problem since there’s no existing mechanism to deliver these to the client, I think).

Another solution is to store the value in the post text.

---

_[View the full topic](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526)._
