Kibana API - Version 6.8

Hello Everyone,

I would like to create an index-pattern automatically. Unfortunatly I cannot find the right API-Endpoint in Opendistro. For “Offical” Kibana it should be:

curl -X POST "localhost:5601/api/saved_objects/index-pattern/my-pattern"

My guess would be that the right endpoint in Opendistro is:

curl -X POST "localhost/_plugin/kibana/api/saved_objects/index-pattern/my-pattern"

Unfortunatly I’m getting an 404. Maybe someone already used the saved_objects API in Opendistro and can give me an hint in the right direction.