# How to change topic date after import

**URL:** https://meta.discourse.org/t/how-to-change-topic-date-after-import/292565
**Category:** Migration
**Tags:** rest-api, rails-console
**Created:** [January 22, 2024, 9:32pm UTC](https://meta.discourse.org/t/how-to-change-topic-date-after-import/292565 "2024-01-22T21:32:18Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 29, 2024, 7:51am UTC](https://meta.discourse.org/t/how-to-change-topic-date-after-import/292565/8 "2024-01-29T07:51:12Z")

</div>

> [@Ventrilo](#):
>
> Yeahhh I need to do this for 3,000+ posts though

Out of curiosity, why would you want all 3000+ topics to have the same date?

But, curiosity aside, you should be able to do this with the API or the rails console, if you’re comfortable using it (it’s good practice to take a backup first, just in case).

There’s some info about how to get the relevant API for things in this topic - [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576)

And there are a few examples of different rails techniques in [Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349) that you could use to build what you need (or give you some idea of what to Search for).

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-topic-date-after-import/292565)._
