Skip to main content
PATCH
/
2
/
teams
/
{teamSlug}
/
environments
/
{ID}
Update an Environment
curl --request PATCH \
  --url https://api.honeycomb.io/2/teams/{teamSlug}/environments/{ID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "id": "<string>",
    "type": "environments",
    "attributes": {
      "description": "<string>",
      "color": "blue",
      "settings": {
        "delete_protected": true
      }
    }
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "environments",
    "links": {
      "self": "<string>"
    },
    "attributes": {
      "name": "<string>",
      "description": "<string>",
      "color": "blue",
      "slug": "<string>",
      "settings": {
        "delete_protected": true
      }
    }
  }
}

Authorizations

Authorization
string
header
required

A Honeycomb Management Key is required to use this API.

The token should be passed in the "Authorization" header, and the secret should be prefixed with "Bearer " followed by the API Key's ID and secret, separated by a colon.

For example, Authorization: Bearer hcxmk_12345678901234567890123456:12345678901234567890123456789012

More information can be found in the Manage API Keys documentation.

Path Parameters

teamSlug
string
required

The slug of the Team

ID
string
required

A unique identifier

Body

application/vnd.api+json
data
object
required

Response

Success

data
object
required