Skip to content

Commit aaffb8e

Browse files
authored
Merge pull request #127 from lwhitelock/patch-1
Set the body parameter correctly.
2 parents fe03be9 + 76e308c commit aaffb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ITGlueAPI/Resources/FlexibleAssetFields.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function Get-ITGlueFlexibleAssetFields {
106106
try {
107107
$ITGlue_Headers.Add('x-api-key', (New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList 'N/A', $ITGlue_API_Key).GetNetworkCredential().Password)
108108
$rest_output = Invoke-RestMethod -method 'GET' -uri ($ITGlue_Base_URI + $resource_uri) -headers $ITGlue_Headers `
109-
-ErrorAction Stop -ErrorVariable $web_error
109+
-body $body -ErrorAction Stop -ErrorVariable $web_error
110110
} catch {
111111
Write-Error $_
112112
} finally {

0 commit comments

Comments
 (0)