Unallowed tag in conversation returns 200

I use the endpoint

PUT https://{domain}/t/{slug}/{id}/tags%5B%5D={tag}

to assign tags to topics via the API. However, if I tag a category in which that tag is not allowed ({} is restricted to {categories} or {tag} is not allowed in this {category}), it still returns a 200, despite it not achieving what I want it to. I think it should return a different error code.

1 Like

Good point. This should do it:

https://github.com/discourse/discourse/commit/c2c169f5b7d69e6a4ab734b4ff21aa77d1be2a5b

5 Likes

Awesome, thanks for the quick fix!

This topic was automatically closed after 30 hours. New replies are no longer allowed.