I am currently trying to move this command inside of Octopus in order to create an automatic rollback process where I can redeploy a release if my current deployment fails. I would rather not use Octo.exe and would rather use a powershell script in some way that doesn’t have a dependency on some package being imported in. From looking at the documentation for the REST API I don’t see a deployment method, does one exist? If there is, where is the document that explains the set of commands?
What if I want to re-deploy the current version? I built the request according to your snippet (using the current version #), but then I get an HTTP 400 error back.