---
title: "Modifies properties settings for the specified environment."
method: PUT
path: "/environments/{environmentId}"
tags: ["Environments"]
---

# Modifies properties settings for the specified environment.

`PUT /environments/{environmentId}`

## Request

- Base URL: `https://api.acquia.com/v3`
- URL: `https://api.acquia.com/v3/environments/{environmentId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/acquia/apis/acquia-cloud-platform-api/docs/environments/:environmentId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `environmentId` string, required

## Request body

- object
  - `label` string: Human-readable label for the environment.
  - `description` string: Description for the environment.
  - `properties` object: PHP and server configuration properties for the environment.
    - `version` string: PHP version (e.g. "8.3").
    - `apcu` integer: APCu memory limit in MB.
    - `max_execution_time` integer: PHP max execution time in seconds.
    - `memory_limit` integer: PHP memory limit in MB.
    - `opcache` integer: OPcache memory limit in MB.
    - `interned_strings_buffer` integer: OPcache interned strings buffer in MB.
    - `client_max_body_size` integer: Nginx client_max_body_size in MB.
    - `upload_max_filesize` integer: PHP upload_max_filesize in MB.
    - `max_post_size` integer: PHP post_max_size in MB.
    - `max_input_vars` integer: PHP max_input_vars.
    - `memcached_limit` integer: Memcached memory limit in MB.
    - `operating_system` string: Operating system (e.g. "focal").
    - `sendmail_path` string: Sendmail path configuration.

## Response `202`

Environment update started

- object
  - `_links` object, required: HAL links for the resource
    - `self` EnvironmentServiceAPIHalLink, required: HAL link object
      - `href` union, required: The target URI of the link (can be a URI or URI template)
        - string, uri
        - string, uri-template
      - `templated` boolean: Whether the link is a URI template
      - `type` string: Hint about the media type expected when dereferencing the target resource
      - `deprecation` string: A URL to a resource that provides deprecation information
      - `name` string: A secondary key for selecting links
      - `profile` string: A URI that hints about the profile of the target resource
      - `title` string: A human-readable identifier for the link
      - `hreflang` string: The language of the target resource
  - `_embedded` object: Embedded resources (optional)
  - `message` 'Environment update started.', required: Confirmation message that the environment update has been started.

## Other responses

- `400`: Validation Error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

[API](https://skmtc.dev/acquia/apis/acquia-cloud-platform-api.md) - [All operations](https://skmtc.dev/acquia/apis/acquia-cloud-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/acquia/apis/acquia-cloud-platform-api/revisions/508f8f94456d?raw)
