Configure local authentication via API?

Everything in the UI is just an API call so this shouldn’t be an issue, but I’d need @vincent to provide the real response.