I am trying to use the API "Releases - Update release environment" on Azure devops Server 2019 (Version Dev17.M153.5) to update a variable that is defined within a stage scope. The api returns successful response but sends back the original value of the variable in the stage scope rather than the updated value provided via the api call.
Note: I have a "Pre-deployment approval" configured on the stage that needs the stage scoped variable to be updated. The Api explicitly needs the stage to have an approval failing which I get the following error
{ "$id": "1", "innerException": null, "message": "Invalid input to update stage 'ABC' of release 'Release-123'. Make sure you have pending approvals in the stage.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException, Microsoft.VisualStudio.Services.ReleaseManagement2.Data", "typeKey": "InvalidRequestException", "errorCode": 0, "eventId": 3000 }
Any help is highly appreciated
Thanks Sibi JV