Deploying a release programmatically at a scheduled time - no expiry option

Hello
I am attempting to deploy a release programmatically. The basics are simple
var deploy = new DeploymentResource()
deploy.ProjectId = projectID
deploy.EnvironmentId = environmentID;
deploy.ReleaseId = releaseID;
deploy.ChannelId = channelID;
deploy.QueueTime = scheduledTime;

However, there does not appear to be an attribute exposed for the QueueTimeExpiry
deploy.QueueTimeExpiry = expiryTime;

Is there a different way to access this attribute?

Kind regards
Ian

Hi Ian,

Thanks for reaching out! Which version of the Octopus.Client are you using? And against which version of the Octopus Server are you running this code?

Thanks,
Dalmiro

Hi Dalmiro,
You put your finger right on it. The version of the client I was using was old. Updating that fixed the problem straight away.

Thanks
Ian

Glad to hear that :slight_smile:

Cheers!