Functions/Set-IAWidgetConfigurationHistory.ps1
Function Set-IAWidgetConfigurationHistory { Param( [Parameter(Mandatory = $true)] [PSObject] $IAWidgetConfigurationHistory ) $Uri = "WidgetConfigurationHistories($($IAWidgetConfigurationHistory.Id))" $Body = $IAWidgetConfigurationHistory | 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 } |