---
title: "Changes to Create or update an environment"
method: PUT
path: "/repos/{owner}/{repo}/environments/{environment_name}"
---

# Changes to Create or update an environment

`PUT /repos/{owner}/{repo}/environments/{environment_name}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 62 revisions.

- **2026-06-23** `ae221630baa5` — 1 info

## Changes

- **2026-06-23** `ae221630baa5` — 1 info
  - added the optional property `protection_rules/items/anyOf[subschema #2]/reviewers/items/reviewer/anyOf[subschema #2: Team]/access_source` to the response with the `200` status

---

[Operation](https://skmtc.dev/github/apis/enterprise-cloud/docs/repos/:owner/:repo/environments/:environment_name/put.md) · [API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [Page](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/environments/:environment_name/put)
