Minecraft wiki entry for fill, associated text: Specifies the ID of the blocks in the fill region to be replaced. If not specified, replaces all blocks in the fill region.
In Java Edition, it must be in form of block_id[block_states]{data_tags}(accepts block tags), in which block states and data tags can be omitted when they are not needed. In Bedrock Edition, it must be a block id.