Skip to content

New NotionRichTextText

fasteiner edited this page Sep 25, 2025 · 1 revision

New-NotionRichTextText

SYNOPSIS

Creates a new Notion rich text block object of type "text".

SYNTAX

New-NotionRichTextText [[-Text] <String>] [[-Annotations] <Object>] [[-Link] <Object>]
 [<CommonParameters>]

DESCRIPTION

This function creates a new instance of the rich_text class with type "text". It supports adding text content with optional annotations and links.

EXAMPLES

EXAMPLE 1

New-NotionRichTextText -Text "Hello World"

Creates a rich text object with the specified text "Hello World".

EXAMPLE 2

$annotations = New-NotionRichTextAnnotation -Bold -Color "blue"
New-NotionRichTextText -Text "Hello World" -Annotations $annotations -Link "https://example.com"

Creates a rich text object with the specified text, annotations, and link.

PARAMETERS

-Annotations

The annotations (bold, italic, etc.) for the rich text block. If not specified, the properties of the parent object are used.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Link

The link object or URL for the rich text block.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Text

The text content for the rich text block.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
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

[rich_text]

NOTES

RELATED LINKS

Notion Module

Home
Module-FAQ
SetupOfIntegration

Commands
Classes
Enums

Clone this wiki locally