# Importing Tickets and Articles using the API

**URL:** https://community.zammad.org/t/importing-tickets-and-articles-using-the-api/5775
**Category:** Development
**Created:** [November 26, 2020, 8:43pm UTC](https://community.zammad.org/t/importing-tickets-and-articles-using-the-api/5775 "2020-11-26T20:43:59Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ecomsilio](https://community.zammad.org/user_avatar/community.zammad.org/ecomsilio/32/297_2.png) [@ecomsilio](https://community.zammad.org/u/ecomsilio)
#### Post date: [November 26, 2020, 9:18pm UTC](https://community.zammad.org/t/importing-tickets-and-articles-using-the-api/5775/2 "2020-11-26T21:18:55Z")

</div>

Hi Andreas,

> [@apiening](#):
>
> When creating a ticket, I can add `"state" => "closed",` for old tickets. However, when I add additional articles to the ticket, the customer gets notified on each and every update. How can I **silently** add articles to the tickets?

This might help you:

> [@Create Tickets and Articles through API with historical time and date](https://community.zammad.org/t/create-tickets-and-articles-through-api-with-historical-time-and-date/1057/4):
>
> Hi Thorsten, I can change into import\_mode using the rails console with the following command Setting.set('import\_mode', true) But do I also need to use Setting.set('system\_init\_done', false) ? In this case Zammad is already setup, some Agents habe been created. No companies, users or tickets have been created yet except the first/default ticket from Nicole Braun. Thanks, Gijs

Rails Console: [Console — Zammad System Documentation documentation](https://docs.zammad.org/en/latest/admin/console.html)

```
Setting.set('import_mode', true)
Setting.set('system_init_done', false) 

```

> [@apiening](#):
>
> I would like to set the original timestamps for the ticket creation, but when I add a `created_at` field it seems to be ignored. The ticket is still displayed with the current creation time.

You will have to set a date for the ticket as well as for the article. I had the same issue where I created tickets with a historical date but because I didn’t set that date for the article, the article was created with the current time and the ticket was listet as a recent ticket instead as an old ticket.

Regards,  
Gijs

---

_[View the full topic](https://community.zammad.org/t/importing-tickets-and-articles-using-the-api/5775)._
