---
title: "UpdateEnvironmentClass"
method: POST
path: "/gitpod.v1.RunnerConfigurationService/UpdateEnvironmentClass"
tags: ["gitpod.v1.RunnerConfigurationService"]
---

# UpdateEnvironmentClass

`POST /gitpod.v1.RunnerConfigurationService/UpdateEnvironmentClass`

Updates an environment class.

 Use this method to:
 - Modify class settings
 - Update resource limits
 - Change availability

 ### Examples

 - Update class:

   Changes class configuration.

   ```yaml
   environmentClassId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   displayName: "Updated Large Instance"
   description: "16 CPU, 32GB RAM"
   enabled: true
   ```

## Request body

- GitpodV1UpdateEnvironmentClassRequest
  - `configuration` GitpodV1FieldValue[] — configuration fully replaces the stored environment-class configuration when non-empty. An omitted or empty configuration leaves the stored configuration unchanged.
    - `key` string
    - `value` string
    - `values` string[] — values is an ordered list value. A field uses either value or values.
  - `description` string, nullable
  - `displayName` string, nullable
  - `enabled` boolean, nullable
  - `environmentClassId` string, uuid

## Response `200`

Success

- GitpodV1UpdateEnvironmentClassResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
