Add update method to global api