API fixes for custom domains route in the API

Github

Github
API
This release makes the API ready to support managing custom domains with a UI in the Dashboard
This release makes the API ready to support managing custom domains with a UI in the Dashboard