---
title: "Update An Environment Of An Agent By Id"
method: PATCH
path: "/v1/orchestrate/agents/{agent_id}/environment/{environment_id}"
tags: ["Agent Release Environments"]
---

# Update An Environment Of An Agent By Id

`PATCH /v1/orchestrate/agents/{agent_id}/environment/{environment_id}`

Update an environment of an agent by id.

## Path parameters

- `agent_id` string, uuid, required
- `environment_id` string, uuid, required

## Request body

- PatchEnvironment
  - `name` string, required — Name of the environment
  - `description` string, required — Description of what the environment does
  - `voice` Voice
    - `enable_on_homepage` boolean — Enable voice on homepage
    - `enable_on_embed` boolean, nullable — Enable voice on homepage
  - `current_version` integer, nullable — Current agent version pointed to this environment
  - `enable_wxg_integration` boolean, nullable — Enable/disable WXG integration for this agent

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ibm/apis/wxo-server-api.md) · [All operations](https://skmtc.dev/ibm/apis/wxo-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibm/wxo-server-api/revisions/82c114c37196/schema)
