Functions/New-IAWidgetConfigurationText.ps1
Function New-IAWidgetConfigurationText { Param( [Parameter(Mandatory = $true)] [String] $IAWidgetConfigurationTextObject, [Switch]$PassThru ) $Uri = "WidgetConfigurationTexts" $Body = $IAWidgetConfigurationTextObject # | 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 } } |