Using REST API to promote releases

We are using the REST API currently to create and deploy releases, and this is working fine. I can’t seem to find any documentation about using the REST API to promote a release from one environment to another (I can only find Octo.exe examples). Is there any documentation for promotes, or can someone give me an example?

Thanks

Chris

Hi Chris

Thanks for getting in touch.
Promoting a release is creating a new Deployment with the correct environment ID, Project ID and Release ID. I’ve got a client .NET API sample right here https://gist.github.com/DamianMac/ceae61309794f36a6b78

If you’re using the REST API directly you should be able to translate that easily enough, let me know if that works for you or you need a bit more direction.

Regards

Damian

Hi Damian,

Thanks for the quick reply. That seems to be working fine.

Cheers

Chris