Use api to get and set the minimum number of masters

discovery.zen.minimum_master_nodes is the config file setting, but I can't find how to get the current value, or set a new value via the API.