Java 26.2
Block Commands
Position
Stone
Single block placement
/setblock ~ ~ ~ minecraft:stone
A /fill is a /setblock with a second corner and a mode. The mode is what people get wrong: replace overwrites everything, keep only fills air, hollow and outline leave the interior alone. Choose the block, its state and NBT here, then pick the mode deliberately.
Setblock and fill
Java 26.2
Position
Single block placement
/setblock ~ ~ ~ minecraft:stone