Revert rest api.