You need to write two interfaces
define two methods within the api interface. Modify the place alone pass id
Write Service
First check whether there is data to be modified
controller
Json modified data to be submitted. Will be used here @RequestBody
modified data