From e19515f368a7205fed0fd49d8719fa1f907357d9 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 31 Jan 2019 09:39:13 +0100 Subject: [PATCH 1/2] Corrected $resource_uri for Remove (#65) Bulk destroying configurations only uses the path /configurations, no nested route and not id in the parameter. Everything goes into the data object. Changed $resource_uri to reflect this (as pointed out in issue #65) --- ITGlueAPI/Resources/Configurations.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ITGlueAPI/Resources/Configurations.ps1 b/ITGlueAPI/Resources/Configurations.ps1 index 49e24ba..87e1fdc 100755 --- a/ITGlueAPI/Resources/Configurations.ps1 +++ b/ITGlueAPI/Resources/Configurations.ps1 @@ -300,11 +300,7 @@ function Remove-ITGlueConfigurations { $data ) - $resource_uri = ('/configurations/{0}' -f $id) - - if ($flexible_asset_type_id) { - $resource_uri = ('/organizations/{0}/relationships/configurations/{1}' -f $organization_id, $id) - } + $resource_uri = '/configurations/' $body = @{} From 025b19a741f8810e6f59f0d7dcd4b33bdb605bd7 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 31 Jan 2019 09:40:29 +0100 Subject: [PATCH 2/2] Upped patch version by 1 --- ITGlueAPI/ITGlueAPI.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ITGlueAPI/ITGlueAPI.psd1 b/ITGlueAPI/ITGlueAPI.psd1 index 014164c..59eec14 100755 --- a/ITGlueAPI/ITGlueAPI.psd1 +++ b/ITGlueAPI/ITGlueAPI.psd1 @@ -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.6' +ModuleVersion = '2.0.7' # ID used to uniquely identify this module #GUID = ''