Update Watcher index settings

PUT /_watcher/settings

Update settings for the Watcher internal index (.watches). Only a subset of settings can be modified. This includes index.auto_expand_replicas and index.number_of_replicas.

Query parameters

  • The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

  • timeout string

    The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

application/json

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
PUT /_watcher/settings
curl \
 -X PUT http://api.example.com/_watcher/settings \
 -H "Content-Type: application/json" \
 -d '{"index.auto_expand_replicas":"0-4"}'
Request example
{
  "index.auto_expand_replicas": "0-4"
}
Response examples (200)
{
  "acknowledged": true
}