# تحقق من توفر اسم الفئة. جافة تشغيل API / تعبير مخصص؟

**URL:** <https://meta.discourse.org/t/check-whether-a-category-name-is-available-api-dry-run-custom-slug/90373>\
**Category:** Feature\
**Created:** [21 يونيو 2018، 7:46ص UTC](https://meta.discourse.org/t/check-whether-a-category-name-is-available-api-dry-run-custom-slug/90373 "2018-06-21T07:46:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [22 يونيو 2018، 1:07ص UTC](https://meta.discourse.org/t/check-whether-a-category-name-is-available-api-dry-run-custom-slug/90373/2 "2018-06-22T01:07:39Z")

</div>

If a category name is taken, sending a POST request to `/categories.json` returns an error message:

```plaintext
{"errors":["Category Name has already been taken"]}

```

You could check for this error message.

---

_[View the full topic](https://meta.discourse.org/t/check-whether-a-category-name-is-available-api-dry-run-custom-slug/90373)._
