New NotionHeader - fasteiner/Notion GitHub Wiki
Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/create-a-database schema: 2.0.0 Type: Command
Creates a new Notion header.
New-NotionHeader [-Text] <String> [[-Color] <notion_color>] [-Level] <Int32> [[-is_toggleable] <Boolean>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
The New-NotionHeader function creates a new header for a Notion page with specified text, color, level, and toggleable option.
New-NotionHeader -Text "My Header" -Level 1
Creates a level 1 header with the text "My Header" and default color.
New-NotionHeader -Text "My Header" -Color "blue" -Level 2 -is_toggleable $true
Creates a level 2 header with the text "My Header", blue color, and toggleable option enabled.
The color of the header. This parameter is optional and defaults to "default".
Type: notion_color
Parameter Sets: (All)
Aliases:
Accepted values: blue, blue_background, brown, brown_background, default, gray, gray_background, green, green_background, orange, orange_background, pink, pink_background, purple, purple_background, red, red_background, yellow, yellow_background
Required: False
Position: 2
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
Specifies if the header is toggleable. This parameter is optional.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The level of the header (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
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The text of the header. This parameter is mandatory.
Type: String
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.