---
title: "Changes to Partially update env var"
method: PATCH
path: "/v1/env_var/{env_var_id}"
---

# Changes to Partially update env var

`PATCH /v1/env_var/{env_var_id}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 8 of 101 revisions.

- **2026-10-30** `8f5039399f77`: 4 breaking
- **2026-10-07** `e5be7d758587`: 1 warning
- **2026-09-25** `c709dafda419`: 1 warning
- **2026-09-03** `ebac33c1422e`: 1 breaking
- **2026-05-21** `7c3461755f69`: 3 info
- **2026-03-04** `79e3efbd784c`: 1 warning
- **2026-01-08** `c7496daaaa37`: 5 info
- **2024-09-30** `ac2727014d93`: 1 info

## Changes

- **2026-10-30** `8f5039399f77`: 4 breaking
  - the request property `metadata` became not nullable
  - the request property `metadata/additionalProperties/` became not nullable
  - the request property `secret_type` became not nullable
  - the request property `value` became not nullable
- **2026-10-07** `e5be7d758587`: 1 warning
  - added the new `automation_integration` enum value to the `secret_category` response property for the response status `200`
- **2026-09-25** `c709dafda419`: 1 warning
  - added the new `mcp_server` enum value to the `object_type` response property for the response status `200`
- **2026-09-03** `ebac33c1422e`: 1 breaking
  - request body became required
- **2026-05-21** `7c3461755f69`: 3 info
  - added the optional property `preview_secret` to the response with the `200` status
  - added the optional property `secret_updated_at` to the response with the `200` status
  - added the optional property `secret_updated_by_user_id` to the response with the `200` status
- **2026-03-04** `79e3efbd784c`: 1 warning
  - added the new `sandbox_provider` enum value to the `secret_category` response property for the response status `200`
- **2026-01-08** `c7496daaaa37`: 5 info
  - added the new optional request property `metadata`
  - added the new optional request property `secret_type`
  - added the optional property `metadata` to the response with the `200` status
  - added the optional property `secret_category` to the response with the `200` status
  - added the optional property `secret_type` to the response with the `200` status
- **2024-09-30** `ac2727014d93`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/braintrustdata/apis/braintrust-api/docs/v1/env_var/:env_var_id/patch.md) - [API](https://skmtc.dev/braintrustdata/apis/braintrust-api.md) - [Page](https://skmtc.dev/braintrustdata/apis/braintrust-api/changes/v1/env_var/:env_var_id/patch)
