Change Release versioning through REST API

Hello,

we created a tool that uses OctoClient to create a project in Octopus.

How can I set the
Release versioning
to
Use the version number from an included NuGet package
with OctoClient / Rest API?

Thank you.

Hi,

Thanks for reaching out. The Project object will have 2 properties that you need to modify:

  • Set ProjectObject.VersioningStrategy.DonorPackageStepId = to the GUID of your deployment step.
  • Set ProjectObject.VersioningStrategy.Template = to null

Then save the changes to the project to the database using the repository.projects.modify method.

Hope that helps!

Dalmiro

thanks!