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