Redeploy Release to Target Using API

usability
known
(Henry La Fleur) #1

I found this topic on redeploying using the API (and I am running an older version), but unfortunately the link to the script is dead:

https://help.octopus.com/t/deploying-release-via-the-rest-api/10173

Can someone explain the process of re-deploying a release to a given target using the API? I am able to do the initial deployment, so would like to know what verbs, endpoints, and options are required.

(Justin Walsh) #2

Hi @Henry.LaFleur!

Thanks for reaching out. We do have an example script of this in our API repo here: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Deployments/ReDeployLatestReleaseInEnvironment.ps1

Hopefully this is what you’re after, if not a good start to get you most of the way there.

Happy Deployments!

1 Like