Skip to content

Commit

Permalink
Merge pull request #64 from ecspresso/patch-2
Browse files Browse the repository at this point in the history
Corrected Remove-ITGlueContacts paths
  • Loading branch information
adrianwells authored Jan 24, 2019
2 parents 72f8b41 + b1879a2 commit dfc266d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ITGlueAPI/ITGlueAPI.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RootModule = '.\ITGlueAPI.psm1'
# -- MINOR version when you add functionality in a backwards-compatible manner, and
# -- PATCH version when you make backwards-compatible bug fixes.

ModuleVersion = '2.0.5'
ModuleVersion = '2.0.6'

# ID used to uniquely identify this module
#GUID = ''
Expand Down
6 changes: 3 additions & 3 deletions ITGlueAPI/Resources/Contacts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ function Remove-ITGlueContacts {
$data
)

$resource_uri = ('/configurations/{0}' -f $id)
$resource_uri = ('/contacts/{0}' -f $id)

if ($flexible_asset_type_id) {
$resource_uri = ('/organizations/{0}/relationships/configurations/{1}' -f $organization_id, $id)
$resource_uri = ('/organizations/{0}/relationships/contacts/{1}' -f $organization_id, $id)
}

$body = @{}
Expand Down Expand Up @@ -314,4 +314,4 @@ function Remove-ITGlueContacts {
$data = @{}
$data = $rest_output
return $data
}
}

0 comments on commit dfc266d

Please sign in to comment.