I am trying to define a CustomMetadata type via an API. Any (Apex, REST etc) API is ok.
So far I have only been able to create new instances of the type but I have not been able to define the type itself via an API.
Is there a way to define a CustomMetadata type through an API? ie can I use an API to achieve the same as described here