# Как создать запрос в Data Explorer с помощью API?

**URL:** https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776
**Category:** Development
**Tags:** data-explorer, rest-api
**Created:** [08.Ноябрь.2023 04:48:44 UTC](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776 "2023-11-08T04:48:44Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Tanay\_Suthar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanay_suthar/32/332268_2.png) [@Tanay\_Suthar](https://meta.discourse.org/u/Tanay_Suthar)
#### Post date: [08.Ноябрь.2023 12:06:14 UTC](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776/3 "2023-11-08T12:06:14Z")

</div>

Спасибо за статью [Обратная разработка API Discourse](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576).

Я ознакомился с ней и понял, что необходимо выполнить два отдельных вызова.

Первым должен быть POST-запрос к **/admin/plugins/explorer/queries** , который сгенерирует идентификатор (ID), связанный с запросом.

Во-вторых, необходимо выполнить PUT-запрос к **/admin/plugins/explorer/queries/id** , чтобы отредактировать запрос по умолчанию.

Однако меня интересует, существует ли возможность создать запрос (выполнив один вызов API) напрямую, не зная ID.

Дайте знать, если это возможно.

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776)._
