Set-NotionPageProperties

SYNOPSIS

Updates page properties.

SYNTAX

Set-NotionPageProperties [-Token] <String> [-PageId] <String> [-PageProperties] <PSObject> [<CommonParameters>]

DESCRIPTION

The Set-NotionPageProperties cmdlet modifies page properties for the specified page. Properties not specified will not be modified. The command returns the page object that was modified.

EXAMPLES

Example 1

PS C:\> $PageProperties = @{
    "In stock" = @{
        "checkbox" = $true
    }
}
PS C:\> Set-NotionPageProperties -Token "yoursupersecrettokenvalue" -PageId "9bd15f8d-8082-429b-82db-e6c4ea88413b" -PageProperties $PageProperties

This command modifies the "In stock" page property of the specified page ID.

PARAMETERS

-PageId

Specifies a string containing the ID of the page.

Type: String
Parameter Sets: (All)
Aliases:

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

-PageProperties

Specifies an object containing the properties of the page you wish to change and their new values.

Type: PSObject
Parameter Sets: (All)
Aliases:

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

-Token

Specifies a string containing the integration token value.

Type: String
Parameter Sets: (All)
Aliases:

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

None

OUTPUTS

System.Object

NOTES