Update sonic api