Revert "Revert "Update src/API.java""

This reverts commit ad922a0b819043dddc6470e63c627c0fc8d5b796.
preview