# Setting script.max\_compilations\_per\_minute error

**URL:** <https://discuss.elastic.co/t/setting-script-max-compilations-per-minute-error/195344>\
**Category:** Elasticsearch\
**Created:** [August 15, 2019, 1:01pm UTC](https://discuss.elastic.co/t/setting-script-max-compilations-per-minute-error/195344 "2019-08-15T13:01:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![PeterPain](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Post date:** [August 16, 2019, 7:36am UTC](https://discuss.elastic.co/t/setting-script-max-compilations-per-minute-error/195344/3 "2019-08-16T07:36:26Z")

</div>

Hey William,

im working on version 7.0.0 and i was looking at following topic

> [@How to dynamically set script.max\_compilations\_per\_minute?](https://discuss.elastic.co/t/how-to-dynamically-set-script-max-compilations-per-minute/75493):
>
> I know that we can add this config in elasticsearch.yml but i would like to do it dynamically. documentation says we can change the setting dynamically. [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-using.html#prefer-params](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-using.html#prefer-params) please help me with the curl for updating this setting. PS : I can't update this in elasticcloud too cause this setting is not supported in there configuration.

So i just got the wrong setting name.  
Thanks for your help !

---

_[View the full topic](https://discuss.elastic.co/t/setting-script-max-compilations-per-minute-error/195344)._
