Revert "Update api"

This reverts commit c4429f3accab59de4f7ed040a57e6c40947452ad.