Skip to content

Commit

Permalink
Merge pull request #127 from lwhitelock/patch-1
Browse files Browse the repository at this point in the history
Set the body parameter correctly.
  • Loading branch information
CalebAlbers authored Dec 2, 2022
2 parents fe03be9 + 76e308c commit aaffb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ITGlueAPI/Resources/FlexibleAssetFields.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function Get-ITGlueFlexibleAssetFields {
try {
$ITGlue_Headers.Add('x-api-key', (New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList 'N/A', $ITGlue_API_Key).GetNetworkCredential().Password)
$rest_output = Invoke-RestMethod -method 'GET' -uri ($ITGlue_Base_URI + $resource_uri) -headers $ITGlue_Headers `
-ErrorAction Stop -ErrorVariable $web_error
-body $body -ErrorAction Stop -ErrorVariable $web_error
} catch {
Write-Error $_
} finally {
Expand Down

0 comments on commit aaffb8e

Please sign in to comment.