Trouble specifying version to release

Currently to trying to create a release via rest call:
POST /api/releases

{
“ProjectId”: “Projects-1”,
“version”: “0.0.9”
}

and get response:

{
“ErrorMessage”: “There was a problem with your request.”,
“Errors”: [
“No package version was specified for the step ‘deploy client’”
],
“ParsedHelpLinks”:
}

Shouldn’t it just use the version I’m specifying? Is there something I’m missing here?

Hi,

Thanks for getting in touch! I have some information which should help here.

Octopus requires more information to be sent to it before it can create a release. I can link you to a preexisting script we have for doing this using REST.

The other option which we recommend over directly using REST is to use our Octopus.Client library.

Let me know if these help. :slight_smile:

Best regards,
Daniel