diff --git a/lib/apic.js b/lib/apic.js
index <HASH>..<HASH> 100644
--- a/lib/apic.js
+++ b/lib/apic.js
@@ -114,7 +114,16 @@ define(function (require) {
         root.getBaseHost = function () {
             return base;
         };
-        
+
+        root.setBaseHost = function (host) {
+
+            if (host) {
+                base = host;
+            }
+
+            return base;
+        };
+
         function method(verb, uri, res, params, secure) {
             var safe = safeMethods[verb] || false,
                 protocol = (secure = secure || !safe) ? 'https:' : scheme;
Implemented method to set basehost uri