New NotionToggleBlock - fasteiner/Notion GitHub Wiki
Creates a new Notion toggle block object.
New-NotionToggleBlock [<CommonParameters>]
New-NotionToggleBlock -RichText <Object[]> [-Color <Object>]
[<CommonParameters>]
This function creates a new instance of the notion_toggle_block class. You can create an empty toggle block, or provide rich text and an optional color.
New-NotionToggleBlock
New-NotionToggleBlock -RichText "Details"
New-NotionToggleBlock -RichText "Details" -Color "gray"
The color for the toggle block. Default is "default".
Type: Object
Parameter Sets: WithText
Aliases:
Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
The rich text content for the toggle block.
Type: Object[]
Parameter Sets: WithText
Aliases:
Required: True
Position: Named
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.