/replaceitem entity @p slot.armor.head 1 diamond_boots 1 code example
Example: replaceitem villager command minecraft 1.15
/replaceitem entity @e[type=Villager] slot.armor.head minecraft:stone
/replaceitem entity @e[type=Villager] slot.armor.head minecraft:stone