Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Created April 16, 2015 18:56
Show Gist options
  • Save Dalmirog-zz/01c29dfa2c585a731033 to your computer and use it in GitHub Desktop.
Save Dalmirog-zz/01c29dfa2c585a731033 to your computer and use it in GitHub Desktop.
Add step template
$OctopusAPIKey = "YourApiKey"
$OctopusURL = "YourOctopusURL"
$header = @{ "X-Octopus-ApiKey" = $OctopusAPIKey }
$steptemplateJson = Get-Content .\StepTemplate.txt #This file should contain the full Json of the step template
Invoke-RestMethod $OctopusURL/api/actiontemplates -Method Post -Headers $header -Body $steptemplateJson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment