Setting read_only_allow_delete to false using cURL

Hello,

I'm trying to use cURL command in order to set the parameter read_only_allow_delete to false.
I have cURL errors (either ' is not expected, or cannot resolved or unmatched close brace/bracked).

I tried all these commands:
curl -XPUT "http://localhost:9200/myIndex/_settings" -d '{"index":{"blocks":{"read_only_allow_delete":false}}}' -H "Content-Type: application/json" --user elasticUser:elasticPwd
curl -XPUT "http://localhost:9200/myIndex/_settings" -d '{"index":{"blocks.read_only_allow_delete":false} } ' -H "Content-Type: application/json" --user elasticUser:elasticPwd
curl -XPUT "http://localhost:9200/myIndex/_settings" -d '{"index.blocks.read_only_allow_delete":false}' -H "Content-Type: application/json" --user elasticUser:elasticPwd
curl -XPUT "http://localhost:9200/myIndex/_settings" -d '{"index.blocks.read_only_allow_delete":null}' -H "Content-Type: application/json" --user elasticUser:elasticPwd
curl -XPUT "http://localhost:9200/myIndex/_settings" -H "Content-Type: application/json" -d '{ "index.blocks.read_only_allow_delete" : false }' --user elasticUser:elasticPwd

Thank you for your help

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