Skip to main content
PATCH
Update an environment

Behavior

  • Accepts organization keys only. A scoped key gets 403 insufficient_capability.
  • The body must contain name and nothing else. Send a string of at most 64 bytes of UTF-8 text, or null to clear the name. An empty body or any other field gets 400 invalid_request.
  • slug, kind and created_at never change.
See Environments.

Authorizations

Authorization
string
header
required

The org's platform API key.

Path Parameters

slug
string
required

The environment's slug.

Body

application/json
name
string | null

The display name; null clears it, an omitted name leaves it unchanged. At most 64 characters.

Response

OK

created_at
string
required
id
string
required
kind
string
required
slug
string
required
name
string
Last modified on November 30, 2026