New NotionToDoBlock - fasteiner/Notion GitHub Wiki

New-NotionToDoBlock

SYNOPSIS

Creates a new Notion to-do block object.

SYNTAX

None (Default)

New-NotionToDoBlock [<CommonParameters>]

WithTextAndChecked

New-NotionToDoBlock -RichText <Object> -Checked <Boolean> 
 [<CommonParameters>]

WithText

New-NotionToDoBlock -RichText <Object> [<CommonParameters>]

DESCRIPTION

This function creates a new instance of the notion_to_do_block class. You can create an empty to-do block, provide rich text content, or provide rich text content and a checked state.

EXAMPLES

EXAMPLE 1

New-NotionToDoBlock

EXAMPLE 2

New-NotionToDoBlock -RichText "Buy milk"

EXAMPLE 3

New-NotionToDoBlock -RichText "Buy milk" -Checked $true

PARAMETERS

-Checked

Indicates whether the to-do item is checked.

Type: Boolean
Parameter Sets: WithTextAndChecked
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-RichText

The rich text content for the to-do item.

Type: Object
Parameter Sets: WithTextAndChecked, WithText
Aliases:

Required: True
Position: Named
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_to_do_block

NOTES

RELATED LINKS

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