Develop > API calls > Application environment APIs > Associate environments to the specified lifecycle stage of an application design

Associate environments to the specified lifecycle stage of an application design

Associates environments to the specified lifecycle stage of an application design.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-environments PUT
  • appDesignId - Id of the application design
  • Body - list of environment ids for the specific lifecycle stage in Json format

200 - Successful
400 - Bad request

401 - Authorization failure
404 - Not found
500 - Internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-environments?appDesignId=980aa84e-2b04-48f3-af18-7b2595716abb

The following JSON was sent:

{ "name":"PRODUCTION", "environments": [ { "id":"8a8186da513854bf01513862b01c007b" } ] }

The following JSON was returned:

no content