Skip to main content
PATCH
/
v1
/
environment_groups
/
{env_name}
cURL
curl --request PATCH \
--url https://api.baseten.co/v1/environment_groups/{env_name} \
--header "Authorization: Bearer $BASETEN_API_KEY" \
--data '{
  "manage_access": null
}'
{
  "name": "<string>",
  "team_id": "<string>",
  "team_name": "<string>",
  "manage_access": {
    "is_restricted": true,
    "users": [
      {
        "user_id": "<string>",
        "email": "<string>",
        "name": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

env_name
string
required

Body

application/json

A request to update an existing environment group.

manage_access
UpdateEnvironmentGroupManageAccessV1 · object | null

Manage-access settings to apply. Omit to leave manage access unchanged.

Response

200 - application/json

A team-scoped grouping of same-named environments (e.g. "production", "staging").

Restricting an environment group limits who can manage the environment of that name across every model and chain in the team.

name
string
required

Name of the environment group, matching the environment name it governs.

Example:

"staging"

team_id
string
required

Unique identifier of the team the environment group belongs to.

team_name
string
required

Name of the team the environment group belongs to.

manage_access
EnvironmentGroupManageAccessV1 · object
required

Settings controlling who can manage this environment group.