revert custom api