Add a new Environment to an Application.
POST {{baseUrl}}/orgs/:orgId/apps/:appId/envs
Creates a new Environment of the specified Type and associates it with the Application specified by appId
.
The Environment is also initialized to the current or past state of Deployment in another Environment. This ensures that every Environment is derived from a previously known state. This means it is not possible to create a new Environment for an Application until at least one Deployment has occurred. (The Deployment does not have to be successful.)
The Type of the Environment must be already defined in the Organization.
Request Body
{"from_deploy_id"=>"e80db1a327208c1a", "id"=>"awesome-feature", "name"=>"Awesome Feature Dev", "namespace"=>"awesome-namespace", "type"=>"development"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{}