# How to update Kibana Advance Settings via API request

**URL:** <https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720>\
**Category:** Kibana\
**Created:** [July 5, 2023, 9:12pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720 "2023-07-05T21:12:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nama\_Chintamani\_Illo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nama_chintamani_illo/32/123100_2.png) [@Nama\_Chintamani\_Illo](https://discuss.elastic.co/u/Nama_Chintamani_Illo)\
**Post date:** [July 5, 2023, 9:12pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720/1 "2023-07-05T21:12:13Z")

</div>

I am trying to update the advance settings of a specific space via an API request. I am attempting to change the "metaFields" setting to include the "\_size" field and would like to send the command via an API without having to open up Advance Settings. I have trying the following and it does not seem to update the setting:  
"  
POST kbn:/s/kibanatraining/api/kibana/settings  
{  
"changes": {  
"metaFields": [  
"\_source",  
"\_id",  
"\_index",  
"\_score",  
"\_size"  
]  
}  
}  
"  
Any help on what I'm doing wrong?

---

<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:** [July 5, 2023, 9:27pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720/2 "2023-07-05T21:27:54Z")

</div>

> [@Nama\_Chintamani\_Illo](#):
>
> POST kbn:/s/kibanatraining/api/kibana/settings

From where did you get this endpoint? I don't think this endpoint exists.

All the API endpoints are listed here in the [documentation](https://www.elastic.co/guide/en/kibana/current/api.html), I didn't find anything related to the settings.

---

<div class="post-metadata">

**Author:** ![Nama\_Chintamani\_Illo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nama_chintamani_illo/32/123100_2.png) [@Nama\_Chintamani\_Illo](https://discuss.elastic.co/u/Nama_Chintamani_Illo)\
**Post date:** [July 6, 2023, 12:59pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720/3 "2023-07-06T12:59:01Z")

</div>

If you haven't seen the command, that may explain why I can't get it to work.

Are there no curl commands that can change a Space's advance settings? I've locked my user's spaces down and was looking for a backend way to update this setting. I was hoping to not have to exposing all the options to my users of a Space.

---

<div class="post-metadata">

**Author:** ![Nama\_Chintamani\_Illo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nama_chintamani_illo/32/123100_2.png) [@Nama\_Chintamani\_Illo](https://discuss.elastic.co/u/Nama_Chintamani_Illo)\
**Post date:** [July 6, 2023, 2:28pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720/4 "2023-07-06T14:28:49Z")

</div>

Scratch that. I did some further testing and verified that the API I came up with does in fact work. I just had to run it from a Space with Admin privileges. Thanks for all your help.

---

<div class="post-metadata">

**Author:** ![Nama\_Chintamani\_Illo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nama_chintamani_illo/32/123100_2.png) [@Nama\_Chintamani\_Illo](https://discuss.elastic.co/u/Nama_Chintamani_Illo)\
**Post date:** [July 6, 2023, 4:08pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720/5 "2023-07-06T16:08:47Z")

</div>

Here is a GET request to verify the settings were applied successfully.  
"  
GET kbn:/s/spacename/api/kibana/settings  
"

---

<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:** [August 3, 2023, 4:09pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-advance-settings-via-api-request/337720/6 "2023-08-03T16:09:48Z")

</div>

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