From 1558faa9a7aeb98f70044f18f350a05b8c4d5d77 Mon Sep 17 00:00:00 2001 From: BobJWalker Date: Fri, 17 Dec 2021 15:35:36 -0600 Subject: [PATCH] Ugh, POST vs. PUT strikes again --- .../api-scripts/manage-community-step-templates.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octopus-samples-instances/api-scripts/manage-community-step-templates.ps1 b/octopus-samples-instances/api-scripts/manage-community-step-templates.ps1 index 31bcadc..f9b00d7 100644 --- a/octopus-samples-instances/api-scripts/manage-community-step-templates.ps1 +++ b/octopus-samples-instances/api-scripts/manage-community-step-templates.ps1 @@ -117,7 +117,7 @@ foreach ($space in $spacesList.Items) { Write-Host "The step template $($stepTemplate.Name) is on version $($stepTemplate.Version) while the matching community template is on version $($communityActionTemplate.Version). Updating the step template." - $actionTemplate = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "communityactiontemplates/$($communityActionTemplateToInstall.Id)/installation/$($space.Id)" -spaceId $null -apiKey $OctopusApiKey -item $null -method "PUT" + $actionTemplate = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "communityactiontemplates/$($communityActionTemplate.Id)/installation/$($space.Id)" -spaceId $null -apiKey $OctopusApiKey -item $null -method "PUT" Write-Host "Succesfully updated the step template. The version is now $($actionTemplate.Version)" $installStepTemplate = $false