# EnvironmentUpdate

> The EnvironmentUpdate object in the Guv API.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `name` | string |  |
| `branch` | string or null |  |
| `pull_requests` | boolean |  |
| `ttl` | string or null |  |
| `protection` | [EnvironmentProtection](/docs/api/objects/environment-protection/) |  |
| `databases_mode` | `new`, `branch`, `branch-masked` |  |
| `spend_cap` | [Money](/docs/api/objects/money/) or any or null |  |

\* always present

## Example

```json
{
  "name": "string",
  "branch": "string",
  "pull_requests": false,
  "ttl": "string",
  "protection": {
    "require_approval": false,
    "approver_roles": [
      "owner",
      "admin"
    ],
    "allowed_branches": [
      "string"
    ]
  },
  "databases_mode": "new",
  "spend_cap": {
    "amount": "7.42",
    "currency": "GBP",
    "display": "£7.42"
  }
}
```

## Used by

- [Update an environment (including protection)](/docs/api/environments/#update-an-environment-including-protection)
