# How to batch post

**URL:** <https://meta.discourse.org/t/how-to-batch-post/281909>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [October 11, 2023, 5:12pm UTC](https://meta.discourse.org/t/how-to-batch-post/281909 "2023-10-11T17:12:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [October 12, 2023, 9:35am UTC](https://meta.discourse.org/t/how-to-batch-post/281909/2 "2023-10-12T09:35:46Z")

</div>

Hi 👋

If you want to create new topics, I’d use [https://docs.discourse.org/#tag/Topics/operation/createTopicPostPM](https://docs.discourse.org/#tag/Topics/operation/createTopicPostPM), and set a short time limit between each request to prevent reaching the rate limit.

I think you could also use a rails script and use [discourse/lib/topic\_creator.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/lib/topic_creator.rb). You can have a look at the importer scripts to see how it’s used:

> **[discourse/script/import\_scripts at main · discourse/discourse](https://github.com/discourse/discourse/tree/main/script/import_scripts)**
>
> main/script/import\_scripts

If you don’t have tons of topics, I think a quick script using the API would be the easiest way.

---

_[View the full topic](https://meta.discourse.org/t/how-to-batch-post/281909)._
