# Scripted field with curl

**URL:** <https://discuss.elastic.co/t/scripted-field-with-curl/106837>\
**Category:** Kibana\
**Created:** [November 8, 2017, 9:53am UTC](https://discuss.elastic.co/t/scripted-field-with-curl/106837 "2017-11-08T09:53:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![kumpelblase](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumpelblase/32/35709_2.png) [@kumpelblase](https://discuss.elastic.co/u/kumpelblase)\
**Post date:** [November 8, 2017, 2:48pm UTC](https://discuss.elastic.co/t/scripted-field-with-curl/106837/5 "2017-11-08T14:48:47Z")

</div>

So if I type `GET /.kibana/_search/?type=index-pattern` into the Kibana console, I get all indices, each with its fields. There are also the scripted fields included. What would be the command to get something that looks like your JSON:

> {  
> "name": "scripted\_field",  
> "type": "number",  
> "count": 0,  
> "scripted": true,  
> "script": "script",  
> "lang": "painless",  
> "searchable": true,  
> "aggregatable": true,  
> "readFromDocValues": false  
> }

---

_[View the full topic](https://discuss.elastic.co/t/scripted-field-with-curl/106837)._
