Optional Parameters for Dynamic Pages?

Product: PowerShell Universal
Version: 1.4.6

Is it possible to use optional parameters for a dynamic page?

For example:

New-UDPage -Name $name -url "/output/:id/:id2/:id3/:id4/:id5" -Endpoint {
            #Page Content

I want to be able to hit the page even if I only pass in 2 parameters … i.e. https://localhost/dashboard/output/28/29

I get a page not found if I do not include a value for every parameter.

OR… is it possible to pass in an array to one parameter?

You won’t be able to use the route parameters like this but you can use query strings. You won’t be able to use a param block the query string parts.

$Pages = @(
    New-UDPage -Id 'variables' -Name 'test' -Url '/:id' -Content {
        New-UDTypography -Text "$id $name"

New-UDDashboard -Title 'Test' -Pages $Pages