Skip to main content
PATCH
Rename an environment
Its key stays, so MCP URLs, API calls and scripts that name it keep working. Production can’t be renamed. An API key or MCP URL limited to environments renames only its own.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

key
string
required

a string matching the pattern ^a-z [blocked]?$

Body

application/json
name
string
required

a string at most 40 character(s) long

Required string length: 1 - 40

Response

The team's environments

The team's environments, production first; empty before it adds one

data
object[]
required