In postman i posted below data
Url: localhost:9200/.kibana/visualization/scanreport
header : content-type/application/json
Method:Put
Requestbody:
{"title":"PieSampleChart","visState":"{"aggs":[{"id":"1","params":{},"schema":"metric","type":"count"},{"id":"2","params":{"field":"leadsource","order":"desc","orderBy":"1","size":100},"schema":"segment","type":"terms"}],"listeners":{},"params":{"addLegend":true,"addTooltip":true,"isDonut":false,"shareYAxis":true},"type":"pie"}","uiStateJSON": "{}","description": "","version": 1,"kibanaSavedObjectMeta": {"searchSourceJSON": "{"index":"testsamplee","query":{"query_string":{"analyze_wildcard":true,"query":""}},"filter":}"}}
AM getting below response only am not able to find the issue
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]"
},
"status": 400
}
Can anyone help on this issue please
Thanks in advance