Snapshot_variables POST not taking

Hi Octopus

I am trying to update variable snapshot on a release through the api. However the call does not work. I get 200 in return with Postman but as said, the release is not updated with latest varialbes. Anything that can be done?

The url looks like this:
http://my-octopus.xx.com/app#/projects/SSFUtilsTest/releases/2.0.1.382-r13559/snapshot-variables

Thanks,
Rasmus

Hi Rasmus,

Thanks for getting in touch! The URL to post the variable snapshot update to should look something like http://my-octopus.xx.com/api/releases/2.0.1.382-r13559/snapshot-variables. We have a sample script to do this via PowerShell that may help. :slight_smile:

Let me know how you go or if you have any further questions moving forward!

Best regards,

Kenny

1 Like

Thanks, that solved it, with the addition that the version 2.0.1.382-r13559 had to be replaced wih Releases-Id.

http://my-octopus.xx.com/api/releases/Releases-NN/snapshot-variables

Hi Rasmus,

You’re very welcome. I’m happy to hear that solved it! Don’t hesitate to reach out if you have any further questions or concerns moving forward. :slight_smile:

Best regards,

Kenny

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.