# Edit static lookup with API

**URL:** <https://discuss.elastic.co/t/edit-static-lookup-with-api/346111>\
**Category:** Kibana\
**Created:** [October 31, 2023, 9:58am UTC](https://discuss.elastic.co/t/edit-static-lookup-with-api/346111 "2023-10-31T09:58:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyberzlo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyberzlo/32/65490_2.png) [@cyberzlo](https://discuss.elastic.co/u/cyberzlo)\
**Post date:** [October 31, 2023, 9:58am UTC](https://discuss.elastic.co/t/edit-static-lookup-with-api/346111/1 "2023-10-31T09:58:50Z")

</div>

I have the following problem. I have an X field in every document, but not in every document I have a Y field. I would like the information from field Y to appear in place of field X. Specifically, it is about the occurrences of documents where there is no field Y so that the field X contains this information - in each document. I'm assuming that scripting this and querying Kibana in real time would put a lot of strain on the system.

The simplest approach I see is data enrichment with static lookup. Every once in a while I do a query to ES where I retrieve the information, and then send that as a static lookup.

How do I update the static lookup using the API? I tried `http://localhost:5601/api/data_views/data_view/<id from kibana links>` but I see all the data view there, how to see the selected `Name`? I tried to add `/name` (where `name` is name of my field `X`) at the end but it returns 404. In addition, how to overwrite these values with API/curl in this case?

---

<div class="post-metadata">

**Author:** ![Hamed\_Mirzaei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamed_mirzaei/32/127240_2.png) [@Hamed\_Mirzaei](https://discuss.elastic.co/u/Hamed_Mirzaei)\
**Post date:** [November 5, 2023, 10:24am UTC](https://discuss.elastic.co/t/edit-static-lookup-with-api/346111/2 "2023-11-05T10:24:11Z")

</div>

I was looking for that today and reach to your issue. Please let me know if you find the solution.

---

<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:** [December 3, 2023, 10:24am UTC](https://discuss.elastic.co/t/edit-static-lookup-with-api/346111/3 "2023-12-03T10:24:41Z")

</div>

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