Create a new environment

Request

PUT https://{hostname}:{port}
    /cli/environment/createEnvironment?{parameters}
Table 1. Request parameters
Parameter Type Required Description
application string true Application to add the environment to
name string true Name of the new environment
description string false Description of the new environment
color string false Color of the new environment, in hex format. For a REST call, URL encode the # symbol; for example, %23ff0000 for pure red. For a udclient command, put the color in hex format in quotes; for example '#ff0000'.
requireApprovals boolean false Whether the environment requires approvals

Example

curl -k -u jsmith:passwd 
   
  "https://myserver.example.com:8443/cli/environment/createEnvironment
  ?application=MyApplication&environment=MyNewEnvironment&color=%23ff0000" -X PUT

Related CLI command: createEnvironment.


Feedback