developer/api/v1/versions/New-Version.ps1
function New-Version { [CmdletBinding(SupportsShouldProcess)] param( [Parameter(Mandatory)] [string] $AppAlias, [Parameter(Mandatory)] [string] $VersionName, [Parameter(Mandatory)] [string] $VersionAlias, [string] $VersionDescription ) if ($PSCmdlet.ShouldProcess($VersionName)) { return Invoke-Api Post "/developer/api/v1/versions/$AppAlias" -JsonBody @{ "name" = $VersionName "alias" = $VersionAlias "description" = $VersionDescription } } } |