// Environments

Update an environment

Update name, sort order, or color of an environment.

PUT/api/environment

Description

Pass only the fields to change. Renaming an environment does not affect releases that already targeted it.

Parameters

NameInTypeRequiredDescription
environmentId body string yes ID of the environment.
name body string no New name.
sortOrder body number no New display order.
color body string no New hex color.

Errors

StatusMeaning
400 Invalid environmentId or validation failure.
401 Missing or invalid Basic auth credentials, or the service account lacks the required role.