Set default index with curl command - Error from Elastic

Hi,

I am using Elasticsearch 7.0.1 and I am trying to set an index as default with the below command:

curl 'ip_:5601/api/kibana/settings'
-H 'kbn-version: 7.0.1'
-H 'Content-Type: application/json'
--data-binary '{"changes":{"defaultIndex":"979390d0-3def-11ea-ad1f-5b09c073c7d3"}}'
--compressed

and I get :
{"message":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];: [cluster_block_exception] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];","statusCode":403,"error":"Forbidden"}

I read this

but there is only :
image

I tried this :


but with no result.

Could you please help with this?
Thank you in advance!

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