
admin.forestSetHost( config as element(configuration), forest-id as (Number|String), value as (Number|String) ) as element(configuration)
This function sets a forest configuration to a new host.
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
http://marklogic.com/xdmp/privileges/admin/forest
http://marklogic.com/xdmp/privileges/admin/forest/{id}
  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
  admin.forestSetHost(config, admin.forestGetId(config, "Documents"),
              xdmp.host("myNewHost"))
   => returns the new configuration element -- use admin.saveConfiguration
      to save the changes to the configuration or pass the configuration
      to other Admin API functions to make other changes.