# Creating new topic in subcategory via API

**URL:** <https://meta.discourse.org/t/creating-new-topic-in-subcategory-via-api/60518>\
**Category:** Product Support\
**Created:** [06.Апрель.2017 03:24:20 UTC](https://meta.discourse.org/t/creating-new-topic-in-subcategory-via-api/60518 "2017-04-06T03:24:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [06.Апрель.2017 10:19:07 UTC](https://meta.discourse.org/t/creating-new-topic-in-subcategory-via-api/60518/4 "2017-04-06T10:19:07Z")

</div>

Based on the docs, the category parameter is an integer, you need to use the category id there.

> **[Discourse API Docs](https://docs.discourse.org/#tag/Topics%2Fpaths%2F~1posts%2Fpost)**

---

_[View the full topic](https://meta.discourse.org/t/creating-new-topic-in-subcategory-via-api/60518)._
