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