New NotionHeadingBlock - fasteiner/Notion GitHub Wiki
Creates a new Notion heading.
New-NotionHeadingBlock [-text] <Object> [[-Color] <Object>] [-Level] <Int32> [-is_toggleable]
[<CommonParameters>]
The New-NotionHeadingBlock function creates a new heading for a Notion page with specified text, color, level, and toggleable option.
New-NotionHeadingBlock -Text "My heading" -Level 1
Creates a level 1 heading with the text "My heading" and default color.
New-NotionHeadingBlock -Text "My heading" -Color "blue" -Level 2 -is_toggleable $true
Creates a level 2 heading with the text "My heading", blue color, and toggleable option enabled.
The color of the heading. This parameter is optional and defaults to "default".
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
Specifies if the heading is toggleable. This parameter is optional.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The level of the heading (1-3). This parameter is mandatory.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
The text of the heading. This parameter is mandatory.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.