[Solved]: AuthorizationException(403, 'cluster_block_exception', 'blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];')

set read_only_allow_delete to False

PUT _settings{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}

If you want to apply in a particular index


PUT your_index_name/_settings{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}