# Want to create an index already present in index management using API

**URL:** <https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212>\
**Category:** Kibana\
**Created:** [May 17, 2021, 5:59pm UTC](https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212 "2021-05-17T17:59:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Changra](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@Changra](https://discuss.elastic.co/u/Changra)\
**Post date:** [May 17, 2021, 5:59pm UTC](https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212/1 "2021-05-17T17:59:04Z")

</div>

Hi Team,

I am trying to create index which is already present in the index management using API . But I am unable to execute any API . Please Help me with it.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 17, 2021, 10:55pm UTC](https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212/2 "2021-05-17T22:55:53Z")

</div>

Just to be clear - you have the index settings in Kibana, but there's no underlying index in Elasticsearch?

> [@Changra](#):
>
> But I am unable to execute any API

Why not?

---

<div class="post-metadata">

**Author:** ![Changra](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@Changra](https://discuss.elastic.co/u/Changra)\
**Post date:** [May 18, 2021, 5:14am UTC](https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212/3 "2021-05-18T05:14:35Z")

</div>

Yes u r right, I tried to execute this Api to create the index pattern but it dosnt work

```
POST /sscm_logs/_doc
{
  "type" : "index-pattern",
  "index-pattern" : {
    "title": "sscm_logs",
    "timeFieldName": "@timestamp"
  }
}

```

sscm\_logs -- is the index name .

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 18, 2021, 10:03am UTC](https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212/4 "2021-05-18T10:03:11Z")

</div>

If you are sending that to Elasticsearch then yes, it will not work, as that is not the Kibana index that stores the patterns.

What's the output from `_cat/indices/sscm*?v` in Elasticsearch?

---

<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:** [June 15, 2021, 10:03am UTC](https://discuss.elastic.co/t/want-to-create-an-index-already-present-in-index-management-using-api/273212/5 "2021-06-15T10:03:23Z")

</div>

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