# Index pattern creation and setting it as default at once

**URL:** <https://discuss.elastic.co/t/index-pattern-creation-and-setting-it-as-default-at-once/152212>\
**Category:** Kibana\
**Created:** [October 12, 2018, 9:50am UTC](https://discuss.elastic.co/t/index-pattern-creation-and-setting-it-as-default-at-once/152212 "2018-10-12T09:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiveshabhishek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shiveshabhishek/32/34533_2.png) [@shiveshabhishek](https://discuss.elastic.co/u/shiveshabhishek)\
**Post date:** [October 12, 2018, 9:50am UTC](https://discuss.elastic.co/t/index-pattern-creation-and-setting-it-as-default-at-once/152212/1 "2018-10-12T09:50:29Z")

</div>

Hey, I am using Kibana's API to create index-patterns. So, I want to know that **is there a way to create a index-pattern and at that time only, make it the default index-pattern?** Basically, I want to do both the tasks with one single request. I searched the web but didn't find any solution for my requirement. Any help would be appreciated.

---

<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:** [November 9, 2018, 9:54am UTC](https://discuss.elastic.co/t/index-pattern-creation-and-setting-it-as-default-at-once/152212/2 "2018-11-09T09:54:31Z")

</div>

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