You can add a host to an HA cluster by calling the AddHost_Task method, or move a host into a cluster by calling the MoveHostInto_Task method or similar.
You might have to call HostSystem.ReconfigureHostForDAS_Task to reconfigure the host for HA if the automatic HA configuration fails. See Adding a Host to a Cluster.