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

# CreateEnvironmentClass

`POST /gitpod.v1.RunnerConfigurationService/CreateEnvironmentClass`

Creates a new environment class for a runner.

 Use this method to:
 - Define compute resources
 - Configure environment settings
 - Set up runtime options

 ### Examples

 - Create environment class:

   Creates a new environment configuration.

   ```yaml
   runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   displayName: "Large Instance"
   description: "8 CPU, 16GB RAM"
   configuration:
     - key: "cpu"
       value: "8"
     - key: "memory"
       value: "16384"
   ```

## Request body

- GitpodV1CreateEnvironmentClassRequest
  - `configuration` GitpodV1FieldValue[]
    - `key` string
    - `value` string
    - `values` string[] — values is an ordered list value. A field uses either value or values.
  - `description` string
  - `displayName` string
  - `runnerId` string, uuid

## Response `200`

Success

- GitpodV1CreateEnvironmentClassResponse
  - `id` string

## 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)
