Why do you not want to return anything? You should return at least true to notify the caller that the transaction was successful.
@PostMapping("/endpoint") public boolean updateSomeData(String value) { boolean result = someService.updateSomething(inputvalue); return result; } If you still do not want to return anything, you can simply change return type of the method to void as follows
@PostMapping("/endpoint") public void updateSomeData(String value) { someService.updateSomething(inputvalue); }