Update api.md

Updated doc