I have created a dashboard in kibana for monitoring, and I want to create an index_pattern already exist in elasticsearch with name (idx-traces). I did the following request curl:
curl -X POST host:port/api/index_patterns/index_pattern -d '{"override":false, "refresh_fields":false, "index_pattern":{"title": "idx-traces"}}'
I got {"statusCode":404,"error":"Not Found","message":"Not Found"}.