# \[API\] Creating a topic with a new tag without tag-creation permission fails silently

**URL:** <https://meta.discourse.org/t/api-creating-a-topic-with-a-new-tag-without-tag-creation-permission-fails-silently/70525>\
**Category:** Bug\
**Tags:** rest-api\
**Created:** [21 september 2017 om 16:50 UTC](https://meta.discourse.org/t/api-creating-a-topic-with-a-new-tag-without-tag-creation-permission-fails-silently/70525 "2017-09-21T16:50:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jack2](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jack2](https://meta.discourse.org/u/jack2)\
**Post date:** [10 oktober 2017 om 21:57 UTC](https://meta.discourse.org/t/api-creating-a-topic-with-a-new-tag-without-tag-creation-permission-fails-silently/70525/7 "2017-10-10T21:57:59Z")

</div>

I think topic creation should fail if tag(s) cannot be created.

Here is the response I get when trying to create a topic with an invalid title:

```test
{ 
  statusCode: 422,
  data: {
    action: 'create_post',
    errors: ['Title has already been used'] 
  }
}

```

So maybe in our case we should have this:

```test
{ 
  statusCode: 422,
  data: {
    action: 'create_post',
    errors: ['Tag creation not allowed']
  }
}

```

---

_[View the full topic](https://meta.discourse.org/t/api-creating-a-topic-with-a-new-tag-without-tag-creation-permission-fails-silently/70525)._
