Functions/New-IAWidgetConfigurationNumbers.ps1
Function New-IAWidgetConfigurationNumbers { Param( [Parameter(Mandatory = $true)] [PSObject] $IAWidgetConfigurationNumbersObject, [Switch]$PassThru ) $Uri = "WidgetConfigurationNumbers" $Body = $IAWidgetConfigurationNumbersObject | ConvertTo-Json Write-Verbose "Body: $Body" $response = Invoke-IAQuery -QueryUrl $Uri -Method Post -Body $Body if($PassThru){ if ($null -eq $response) { return $null } return $response } } |