# How to create "index pattern" with C#/NEST API? (creating a saved object) \[7.X\]

**URL:** <https://discuss.elastic.co/t/how-to-create-index-pattern-with-c-nest-api-creating-a-saved-object-7-x/294106>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [January 12, 2022, 4:53am UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-with-c-nest-api-creating-a-saved-object-7-x/294106 "2022-01-12T04:53:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkhadra](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jkhadra](https://discuss.elastic.co/u/jkhadra)\
**Post date:** [January 12, 2022, 4:53am UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-with-c-nest-api-creating-a-saved-object-7-x/294106/1 "2022-01-12T04:53:50Z")

</div>

Hi, I'd like to know the proper syntax for creating an index pattern/saved object using the NEST API. I've tried using the code [here](https://discuss.elastic.co/t/create-index-pattern-from-c-nest/249113), but nothing is ever created when I check manually via Kibana.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cc5d4c8ba9079f07c702c46e17a41b6e4f2ec956.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/0/005cfbca7918716077b692a07b4ea9f335f8d547.png)

I'm trying to re-create this object, with "msgDT" set as the time field.

Any guidance would be much appreciated!

---

<div class="post-metadata">

**Author:** ![jkhadra](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jkhadra](https://discuss.elastic.co/u/jkhadra)\
**Post date:** [January 17, 2022, 4:26pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-with-c-nest-api-creating-a-saved-object-7-x/294106/2 "2022-01-17T16:26:25Z")

</div>

Still looking to get some input from the Elastic team. 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:** [February 14, 2022, 4:27pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-with-c-nest-api-creating-a-saved-object-7-x/294106/3 "2022-02-14T16:27:06Z")

</div>

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