Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Resource UUID
Body
application/vnd.api+json
Response
environment updated
Update a specific environment by id
curl --request PUT \
--url https://api.rootly.com/v1/environments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "environments",
"attributes": {
"name": "<string>",
"description": "<string>",
"color": "<string>",
"position": 123,
"notify_emails": [
"<string>"
],
"slack_channels": [
{
"id": "<string>",
"name": "<string>"
}
],
"slack_aliases": [
{
"id": "<string>",
"name": "<string>"
}
]
}
}
}'{
"data": {
"id": "df92aa6d-95e7-4c2f-ab55-c13a5221725e",
"type": "environments",
"attributes": {
"slug": "us-east-1",
"name": "us-east-1",
"description": "East Coast Datacenter Region 1",
"color": "#000",
"position": 2,
"notify_emails": [],
"slack_channels": [],
"slack_aliases": [],
"created_at": "2025-10-28T10:21:23.856-07:00",
"updated_at": "2025-10-28T10:21:25.692-07:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resource UUID
Show child attributes
environment updated
Show child attributes
Was this page helpful?
curl --request PUT \
--url https://api.rootly.com/v1/environments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "environments",
"attributes": {
"name": "<string>",
"description": "<string>",
"color": "<string>",
"position": 123,
"notify_emails": [
"<string>"
],
"slack_channels": [
{
"id": "<string>",
"name": "<string>"
}
],
"slack_aliases": [
{
"id": "<string>",
"name": "<string>"
}
]
}
}
}'{
"data": {
"id": "df92aa6d-95e7-4c2f-ab55-c13a5221725e",
"type": "environments",
"attributes": {
"slug": "us-east-1",
"name": "us-east-1",
"description": "East Coast Datacenter Region 1",
"color": "#000",
"position": 2,
"notify_emails": [],
"slack_channels": [],
"slack_aliases": [],
"created_at": "2025-10-28T10:21:23.856-07:00",
"updated_at": "2025-10-28T10:21:25.692-07:00"
}
}
}