# Api calls for Kibana

**URL:** https://discuss.elastic.co/t/api-calls-for-kibana/352328
**Category:** Elasticsearch
**Created:** [February 1, 2024, 4:53pm UTC](https://discuss.elastic.co/t/api-calls-for-kibana/352328 "2024-02-01T16:53:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alon\_carmelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alon_carmelly/32/118670_2.png) [@alon\_carmelly](https://discuss.elastic.co/u/alon_carmelly)
#### Post date: [February 1, 2024, 4:53pm UTC](https://discuss.elastic.co/t/api-calls-for-kibana/352328/1 "2024-02-01T16:53:24Z")

</div>

Hi there,  
I am setting up Elk stack on a eks cluster using helm charts.  
In regards to the helm chart and in general. What configuration elements should be enabled to allow me to set **data views** with a simple **api call**?

I am struggling to find info I am sure it a simple answer which i am missing.  
Help is much apricated.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [February 1, 2024, 5:02pm UTC](https://discuss.elastic.co/t/api-calls-for-kibana/352328/2 "2024-02-01T17:02:41Z")

</div>

Have you checked the [documentation](https://www.elastic.co/guide/en/kibana/current/data-views-api-create.html) for the Create data view API?

The following request would create a data view:

```auto
$ curl -X POST kibana-host:port/api/data_views/data_view
{
  "data_view": {
     "title": "indexname-*",
     "name": "dataview name"
  }
}

```

---

<div class="post-metadata">

### Author: ![alon\_carmelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alon_carmelly/32/118670_2.png) [@alon\_carmelly](https://discuss.elastic.co/u/alon_carmelly)
#### Post date: [February 1, 2024, 7:45pm UTC](https://discuss.elastic.co/t/api-calls-for-kibana/352328/4 "2024-02-01T19:45:17Z")

</div>

Thanks so much, I was able to make it work with the api key but actually I need to find a way to generate api key automatically when setting up the stack with helm,

---

<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 29, 2024, 7:45pm UTC](https://discuss.elastic.co/t/api-calls-for-kibana/352328/5 "2024-02-29T19:45:32Z")

</div>

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