Caprice hasn't the heart for change (4)
I believe the answer is:
vary
'change' is the definition.
('vary' can be a synonym of 'change')
I don't understand how the remainder of the clue works.
Can you help me to learn more?
(Other definitions for vary that I've seen before include "Switch" , "Make or become different" , "Differ in size" , "Change, amend" , "Fluctuate" .)