# Create an elasticsearch based engine via API

**URL:** <https://discuss.elastic.co/t/create-an-elasticsearch-based-engine-via-api/341519>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [August 23, 2023, 9:32pm UTC](https://discuss.elastic.co/t/create-an-elasticsearch-based-engine-via-api/341519 "2023-08-23T21:32:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![franmako](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@franmako](https://discuss.elastic.co/u/franmako)\
**Post date:** [August 23, 2023, 9:32pm UTC](https://discuss.elastic.co/t/create-an-elasticsearch-based-engine-via-api/341519/1 "2023-08-23T21:32:59Z")

</div>

Hello,  
I am trying to create an Elasticsearch based app search engine via the API, but I keep getting the following error: "Type is not included in the list; valid options are meta and default".  
Here's my current request example:

```auto
POST /api/as/v1/engines
{
  "name": "article-local-engine",
  "type": "elasticsearch",
  "index_name": "article_local"
}

```

Does anyone know how I can achieve that, I can't find an example in the docs ?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)\
**Post date:** [August 24, 2023, 7:43pm UTC](https://discuss.elastic.co/t/create-an-elasticsearch-based-engine-via-api/341519/2 "2023-08-24T19:43:43Z")

</div>

Hi @franmako , right now the only way to create Elasticsearch engines is through the UI. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 21, 2023, 7:44pm UTC](https://discuss.elastic.co/t/create-an-elasticsearch-based-engine-via-api/341519/3 "2023-09-21T19:44:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
