Kibana saved objects index pattern update API

Hello,

I see here the correct way to upload a new scripted field to an index pattern in Kibana.

If I want to update a scripted field, can I append to the index pattern attributes.field? Will this overwrite the current scripted field with the same name or do I need to parse through the JSON array, pull out the field I care about, update the script section of the field, reserialize and post to the update API?

If you are on a recent version of Kibana you could use runtime fields and the specialized api for this use case: Upsert runtime field API | Kibana Guide [8.1] | Elastic

What versions of Kibana support runtime fields?

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