---
title: "Update Environment"
method: PATCH
path: "/api/platform/projects/{project_id}/environments/{env_id}"
---

# Update Environment

`PATCH /api/platform/projects/{project_id}/environments/{env_id}`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/platform/projects/{project_id}/environments/{env_id}`
- Auth: HTTP bearer

Update editable environment metadata (name, description).

## Path parameters

- `project_id` string, required
- `env_id` string, required

## Request body

- UpdateEnvironmentRequest
  - `name` string, nullable
  - `description` string, nullable
  - `variables` object, nullable

## Response `200`

Successful Response

- ApiResponse
  - `data` unknown
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
