How to index scripted field with curl

How can I index a scripted field to the .kibana index? Something like curl -XPOST 'http://localhost:9200/.kibana/scriptedfield/Test' -d 'code'

Scripted field are part of the index pattern saved object. Unfortunately, there is no current API for partial updates but you could programmatically overwrite the whole object (with the new scripted field included).

I create issue https://github.com/elastic/kibana/issues/16252 to track the enhancement request

Nathan

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