---
title: "StopEnvironment"
method: POST
path: "/gitpod.v1.EnvironmentService/StopEnvironment"
tags: ["gitpod.v1.EnvironmentService"]
---

# StopEnvironment

`POST /gitpod.v1.EnvironmentService/StopEnvironment`

Stops a running environment.

 Use this method to pause work while preserving the environment's state.
 The environment can be resumed later using StartEnvironment.

 ### Examples

 - Stop an environment:

   Gracefully stops a running environment while preserving its state.

   ```yaml
   environmentId: "07e03a28-65a5-4d98-b532-8ea67b188048"
   ```

## Request body

- GitpodV1StopEnvironmentRequest
  - `environmentId` string, uuid — environment_id specifies which environment should be stopped. +required

## Response `200`

Success

- GitpodV1StopEnvironmentResponse

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