Unable to push documents and index patterns in indexes in kibana plugin using core api

I am unable to push the documents in the newly created index and add new fields to it using the kibana core API . Although I was able to do it with the dev tool. i want to implement this feature in my plugin to add documents and add new fields to it.
Something like this -
POST index name/type
{
"document1":"value"
}

any suggestions on this one?

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