# Spaces - Advanced settings

**URL:** <https://discuss.elastic.co/t/spaces-advanced-settings/179785>\
**Category:** Kibana\
**Created:** [May 6, 2019, 2:01pm UTC](https://discuss.elastic.co/t/spaces-advanced-settings/179785 "2019-05-06T14:01:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr\_Stepan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr_stepan/32/45627_2.png) [@Petr\_Stepan](https://discuss.elastic.co/u/Petr_Stepan)\
**Post date:** [May 6, 2019, 2:01pm UTC](https://discuss.elastic.co/t/spaces-advanced-settings/179785/1 "2019-05-06T14:01:44Z")

</div>

Hi,  
I would like to change advanced settings of certain Kibana space programmatically. I need to set "Dashboards only roles" option in advanced setting via some HTTP request. It this possible?  
If it is possible, please tell me how. Thank you!!

 ![obrazek](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a7b7cfd060602ae073ad381930c3e43fa2bd4a6.png)

The role marked on the picture I need change programmatically. Thank for any hint.

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [May 7, 2019, 12:12pm UTC](https://discuss.elastic.co/t/spaces-advanced-settings/179785/2 "2019-05-07T12:12:14Z")

</div>

Hey @Petr_Stepan,

This post should get you started: [Set default index automatically in new spaces](https://discuss.elastic.co/t/set-default-index-automatically-in-new-spaces/178152/2)

---

<div class="post-metadata">

**Author:** ![Petr\_Stepan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr_stepan/32/45627_2.png) [@Petr\_Stepan](https://discuss.elastic.co/u/Petr_Stepan)\
**Post date:** [May 9, 2019, 11:25am UTC](https://discuss.elastic.co/t/spaces-advanced-settings/179785/3 "2019-05-09T11:25:23Z")

</div>

Got it!

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:** [June 6, 2019, 11:25am UTC](https://discuss.elastic.co/t/spaces-advanced-settings/179785/4 "2019-06-06T11:25:24Z")

</div>

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