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