POST /api/v1/cloud/environments/{environment_id}
Updates the properties of the specified environment (name, description, configuration, and so on).
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT> |
Content-Type | Yes | application/json |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
environment_id | string | Yes | Environment unique identifier (with the env_ prefix) |
Request body
Only the fields included in the request are updated; omitted fields remain unchanged.| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Environment name |
description | string | No | Environment description |
config | Environment config | No | Replaces the stored environment configuration |
metadata | object | No | Metadata patch. String values upsert keys; null values delete keys from stored metadata |
Example request
Example response
HTTP 200 OKResponse fields
| Field | Type | Description |
|---|---|---|
id | string | Environment unique identifier |
type | string | Always "environment" |
name | string | Environment name |
description | string | Updated description |
config | Environment config | Environment configuration |
metadata | Metadata object | Custom metadata |
archived_at | string|null | Archive time (ISO 8601), null when not archived |
created_at | string | Creation time (ISO 8601) |
updated_at | string | Last update time (refreshed) |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid request body, config, or metadata value |
| 401 | authentication_error | PAT invalid or expired |
| 403 | permission_error | Not authorized for this resource |
| 404 | not_found_error | Environment with the given ID does not exist |
Notes
- Omitted fields remain unchanged.
- When
configis provided, it replaces the stored configuration. - When
metadatais provided, string values are merged into the stored metadata object andnullvalues delete existing keys.
Related
Cloud environment setup
Choose the container, network, and dependencies your agent runs in.