New NotionHeadingBlock - fasteiner/Notion GitHub Wiki

New-NotionHeadingBlock

SYNOPSIS

Creates a new Notion heading.

SYNTAX

New-NotionHeadingBlock [-text] <Object> [[-Color] <Object>] [-Level] <Int32> [-is_toggleable]
 [<CommonParameters>]

DESCRIPTION

The New-NotionHeadingBlock function creates a new heading for a Notion page with specified text, color, level, and toggleable option.

EXAMPLES

EXAMPLE 1

New-NotionHeadingBlock -Text "My heading" -Level 1

Creates a level 1 heading with the text "My heading" and default color.

EXAMPLE 2

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.

PARAMETERS

-Color

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

-is_toggleable

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

-Level

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

-text

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

[notion_heading_block] object

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️