Functions/Set-IAWidgetConfigurationText.ps1
Function Set-IAWidgetConfigurationText { Param( [Parameter(Mandatory = $true)] [PSObject] $IAWidgetConfigurationText ) $Uri = "WidgetConfigurationTexts($($IAWidgetConfigurationText.Id))" $Body = $IAWidgetConfigurationText | ConvertTo-Json Write-Verbose "Body: $Body" $response = Invoke-IAQuery -QueryUrl $Uri -Method Patch -Body $Body if ($null -eq $response.value) { return $null } return $response.value } |