How to create index pattern through Dashboards API

What is the correct way to create an index pattern using the Dashboards API?

Where can I find the reference documentation for that?

Currently OpenSearch Dashboards does’t have this documentation, but you can refer to the document of Kibana 7.10, note that dashboards’ API is a little bit different from kibana’s. You can try creating index pattern like this:

curl -X POST localhost:5601/api/saved_objects/index-pattern/test  -H 'osd-xsrf: true' -H 'Content-Type: application/json' -d '{"attributes":{"title": "test*"}}'
1 Like

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