Update mapping gives error

Hard to know exactly what you are doing here but it sounds like you are providing only id field in the PUT Mapping request.

Also you can't change a String to a number.