updated apiurl for cockpit