# How to create scripted field via API?

**URL:** <https://discuss.elastic.co/t/how-to-create-scripted-field-via-api/138664>\
**Category:** Kibana\
**Created:** [July 5, 2018, 8:25am UTC](https://discuss.elastic.co/t/how-to-create-scripted-field-via-api/138664 "2018-07-05T08:25:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![canhht](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@canhht](https://discuss.elastic.co/u/canhht)\
**Post date:** [July 5, 2018, 8:25am UTC](https://discuss.elastic.co/t/how-to-create-scripted-field-via-api/138664/1 "2018-07-05T08:25:14Z")

</div>

Hello everybody, I want create scripted field via API but I not find example specifically. Help for me, please.

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [July 5, 2018, 12:39pm UTC](https://discuss.elastic.co/t/how-to-create-scripted-field-via-api/138664/2 "2018-07-05T12:39:27Z")

</div>

I would suggest opening up dev tools in your browser and then creating a scripted field through the UI and then looking at the network tab to see what request gets sent when you do that. You can then use the request as a model for your own work. We do not really document the APIs that Kibana exposes as they are subject to changing.

---

<div class="post-metadata">

**Author:** ![canhht](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@canhht](https://discuss.elastic.co/u/canhht)\
**Post date:** [July 6, 2018, 1:16am UTC](https://discuss.elastic.co/t/how-to-create-scripted-field-via-api/138664/3 "2018-07-06T01:16:39Z")

</div>

Thanks you for support, I will trial follow the hint.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 3, 2018, 1:16am UTC](https://discuss.elastic.co/t/how-to-create-scripted-field-via-api/138664/4 "2018-08-03T01:16:49Z")

</div>

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