# ¿Cómo usar la API para establecer un temporizador para un tema?

**URL:** <https://meta.discourse.org/t/how-to-use-the-api-to-set-a-timer-for-a-topic/353494>\
**Category:** Development\
**Created:** [21 Febrero, 2025 04:18 UTC](https://meta.discourse.org/t/how-to-use-the-api-to-set-a-timer-for-a-topic/353494 "2025-02-21T04:18:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [21 Febrero, 2025 04:18 UTC](https://meta.discourse.org/t/how-to-use-the-api-to-set-a-timer-for-a-topic/353494/1 "2025-02-21T04:18:46Z")

</div>

Mirando aquí: [Discourse API Docs](https://docs.discourse.org/#tag/Topics/operation/createTopicTimer) la muestra de solicitud muestra:

`https://{url}/t/{id}/timer.json`

```plaintext
{
  "time": "",
  "status_type": "string",
  "based_on_last_post": true,
  "category_id": 0
}

```

Pero esto no parece ser coherente con la configuración de temporizadores (¿por qué se necesita la categoría?)

¿Cuál es la forma correcta de establecer un temporizador para un tema existente para que se cierre en 30 días?

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-the-api-to-set-a-timer-for-a-topic/353494)._
