Yeah, this definitely works, thank you for the suggestion!
It just requires always have an additional API call to read the current state and sending the full object definition back and forth on any single attribute update.
What defeats the purpose of having the PATCH method that exists specifically to avoid this.
A proper patch implementation would require a different ObjectMapper without JsonInclude.Include.NON_NULL
and keeping WRITE_NULL_MAP_VALUES
in the default true
state.