Ariel Tapaoan
Ariel Tapaoan

Reputation: 11

Creating a Release Environment in VSTS programmatically

Is it possible to build a code that will programmatically create or add an environment to an existing Release definition in VSTS? I can't find a guide or documentation how to work with Release environments. There is a REST API to update a definition and its environment(s) but how can I play with that to add a new environment. Thank you in advance

Upvotes: 1

Views: 499

Answers (1)

Sheethal J S
Sheethal J S

Reputation: 430

You should add the environment object to the JSON request as in below link and suggest you observing the Rest API calls made when environments are added through UI and saved.

https://www.visualstudio.com/en-us/docs/integrate/api/rm/definitions#update-a-release-definition

Upvotes: 1

Related Questions