Functions/New-IAWidgetConfigurationBases.ps1
Function New-IAWidgetConfigurationBases { Param( [Parameter(Mandatory = $true)] [PSObject] $IAWidgetConfigurationBasesObject, [Switch]$PassThru ) $Uri = "WidgetConfigurationBases" $Body = $IAWidgetConfigurationBasesObject | 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 } } |