How to manage(api) static lookup map for a field in an Index pattern

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
Using an API instead of the Dashboards UI Console. We have up to 200 of key values pairs to enter for a static lookup field and there are several index patterns with the same field requiring a static lookup. This is hard to manage using just the UI.

Proposal: Use an API call to manage the key value map for a static lookup filed in an index pattern.

Ideally the static lookup map would be reuseable across other index patterns.


Relevant Logs or Screenshots:

Maybe you can try using saved objects API of OSD to create index pattern:

curl -X POST api/saved_objects/index-pattern/my-pattern  -H 'osd-xsrf: true' -H 'Content-Type: application/json' -d '
  "attributes": {
    "title": "my-pattern-*"

Thanks Gaobinlong, I should have mentioned that I am using Opensearch in AWS (ver 2.7 currently). I did try but I cant seem to access the saved_objects endpoint via devtools.

Is it intended to be available via devtools? Is it available directly in ver 2.7 supported by AWS?