Updates the cluster settings
Query parameters
-
flat_settings boolean
Return settings in flat format (default: false)
-
master_timeout string
Explicit operation timeout for connection to master node
-
timeout string
Explicit operation timeout
Body Required
-
persistent object
-
transient object
PUT /_cluster/settings
curl \
-X PUT http://api.example.com/_cluster/settings \
-H "Content-Type: application/json" \
-d '"{\n \"persistent\" : {\n \"indices.recovery.max_bytes_per_sec\" : \"50mb\"\n }\n}"'
Request example
An example of a persistent update.
{
"persistent" : {
"indices.recovery.max_bytes_per_sec" : "50mb"
}
}
Response examples (200)
{
"acknowledged": true,
"persistent": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"transient": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}