'Apache SOLR upload enumConfigs.xml through API

I understand that with Apache Solr 8.11 we can manage schemas, create types and field types through the Schema API. The question I have is:

How do you create enum field types through the API? We usually need to create a enumConfigs.xml file, but I can't seem to find any documentation on how to upload such a file.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source