Skip to content

New NotionVideoBlock

fasteiner edited this page Jul 1, 2025 · 2 revisions

New-NotionVideoBlock

SYNOPSIS

Creates a new Notion Video block.

SYNTAX

InputObjectSet (Default)

New-NotionVideoBlock -InputObject <Object> [<CommonParameters>]

CaptionSet

New-NotionVideoBlock -caption <Object> -url <String> [<CommonParameters>]

DESCRIPTION

The New-NotionVideoBlock function creates a new instance of a Notion Video block. Users can either provide an InputObject or specify the caption, name, and URL to create the block.

EXAMPLES

EXAMPLE 1

$videoBlock = New-NotionVideoBlock -InputObject $fileObject

Creates a new Notion Video block using the specified file object.

EXAMPLE 2

$videoBlock = New-NotionVideoBlock -caption "My Video" -url "https://example.com/example.mp4"

Creates a new Notion Video block using the specified caption and URL.

PARAMETERS

-caption

The caption for the Video block.

Type: Object
Parameter Sets: CaptionSet
Aliases:

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

-InputObject

The file object to be used for creating the Video block. This should be an object that can be converted into a notion_video_block using the ConvertFromObject method.

Type: Object
Parameter Sets: InputObjectSet
Aliases: File

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

-url

The URL of the Video file.

Type: String
Parameter Sets: CaptionSet
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_video_block]

Returns an instance of the notion_video_block class.

NOTES

This function requires the notion_video_block class to be defined in the project.

RELATED LINKS

Notion Module

Home
Module-FAQ
SetupOfIntegration

Commands
Classes
Enums

Clone this wiki locally