---
title: "Update an environment"
method: PATCH
path: "/environments/{environmentId}"
tags: ["environments"]
---

# Update an environment

`PATCH /environments/{environmentId}`

Updates a single environment, to change the name for example

## Path parameters

- `environmentId` string, required

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Request body

- TypeEnvironmentsEnvironmentConfigUpdate — Properties used to update an environment
  - `name` string — The name of the environment
  - `isProd` boolean — Whether or not the environment is a production environment
  - `guestAuthentication` TypeEnvironmentsGuestAuthenticationEnum[]
  - `metadata` object
  - `translationsPath` string
  - `namespaces` string[]
  - `languageOverride` string

## Response `200`

Response with status 200

- TypeEnvironmentsEnvironment
  - `id` string, required — Environment ID
  - `accountId` string, required — Account ID
  - `name` string, required — The name of the environment
  - `isProd` boolean, required — Whether or not the environment is a production environment
  - `guestAuthentication` TypeEnvironmentsGuestAuthenticationEnum[], required
  - `features` object, required
  - `metadata` object, required
  - `translationsPath` string
  - `namespaces` string[]
  - `languageOverride` string

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/revisions/9d3a9979cd96/schema)
