Add a new Environment to an Application.
Changed onCreates 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
- Base URLhttps://api.humanitec.io
- URLhttps://api.humanitec.io/orgs/{orgId}/apps/{appId}/envs
- Authnone declared
Path parameters
The Organization ID.
The Application ID.
Request body
Response
The new Environment.
Example response
{
"created_at": "2020-05-22T14:58:07Z",
"created_by": "a.user@example.com",
"status": "active",
"status_changed_at": "2020-05-22T14:59:01Z",
"from_deploy": {
"comment": "Updated version of module-one to v0.3.1",
"created_at": "2020-05-22T14:58:07Z",
"created_by": "a.user@example.com",
"delta_id": "df1ad41807b0390a9b0eaf8688e1f5baece9d764",
"env_id": "my-env",
"from_id": "42d4b302fd3c",
"id": "67f1619a57d",
"status": "in progress",
"status_changed_at": "2020-05-22T14:59:01Z"
},
"id": "feature-test",
"last_deploy": {
"comment": "Updated version of module-one to v0.3.1",
"created_at": "2020-05-22T14:58:07Z",
"created_by": "a.user@example.com",
"delta_id": "df1ad41807b0390a9b0eaf8688e1f5baece9d764",
"env_id": "my-env",
"from_id": "42d4b302fd3c",
"id": "67f1619a57d",
"status": "in progress",
"status_changed_at": "2020-05-22T14:59:01Z"
},
"name": "Feature Test",
"type": "development"
}Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info