Revert "Update api"

This reverts commit b54c6948a2d84a8a71ee7652e67831d3abf1f4a5.