Updating Domain Name for Site Within Multisite Programmatically


I have a separate workflow for helping my users register a domain.

So given that I can easily retrieve a domain name from my workflow say "example.com", how can I map it to the domain mapping plugin with code?

I'm looking for answers such as:
1. Update this field in the option table
2. Run this action hook etc