---
title: "Update connection environment"
method: PUT
path: "/v1/connection-environments/{connectionEnvironmentId}"
tags: ["Connection environments"]
---

# Update connection environment

`PUT /v1/connection-environments/{connectionEnvironmentId}`

Associates user attribute values with a specific connection environment, which will determine when it is used.

## Path parameters

- `connectionEnvironmentId` string, uuid, required

## Request body

- object
  - `userAttributeValues` string, required — A comma-separated list of user attribute values to associate with the connection environment. For example: `"dev,staging"` **Note**: User attribute values must be unique across all environments for a base connection.

## Response `200`

Connection environment updated successfully

- SuccessResponse
  - `success` boolean

## Other responses

- `400` — Bad Request Possible error messages: - `Invalid JSON` - `Invalid method` - `Invalid uuid` - `User attribute value "<value>" is already in use`
- `403` — Forbidden - Insufficient permissions
- `404` — Not Found Possible error messages: - `Connection environment with id <id> does not exist`
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
