Update an Environment in an Application.
PATCH {{baseUrl}}/orgs/:orgId/apps/:appId/envs?envId=ad officia
Updates properties on an environment. At this time, the only property that can be updated is namespace
.
The supplied namespace must be unique within the organization.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
envId | string | The Environment ID. |
|
Request Body
{"namespace"=>"awesome-namespace"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":"aw4i8lz3jlc8","name":"anim","type":"consectetur ipsum","created_at":"2020-06-22T09:37:23.523Z","created_by":"id eiusmod","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","status":"in progress","status_changed_at":"2020-05-22T14:59:01Z"},"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","status":"in progress","status_changed_at":"2020-05-22T14:59:01Z"},"namespace":"sunt consectetur ad reprehenderit"}