---
title: "Update secret environment override value"
method: PATCH
path: "/v1/secrets-management/projects/{projectID}/environments/{projectEnvironmentIDOrAlias}/secrets/{secretName}"
tags: ["SecretsManagementPublicApi", "Public-Docs"]
---

# Update secret environment override value

`PATCH /v1/secrets-management/projects/{projectID}/environments/{projectEnvironmentIDOrAlias}/secrets/{secretName}`

Sets or removes an environment-specific override for a secret. Pass `null` as the value to delete the override. Use `versionVariant` to target the draft or published version of the environment.

## Path parameters

- `projectID` string, required
- `projectEnvironmentIDOrAlias` string, required
- `secretName` string, required

## Query parameters

- `versionVariant` 'draft' | 'published'

## Request body

- PatchOverrideValueRequest
  - `value` string, nullable, required

## Response `200`

---

[API](https://skmtc.dev/voiceflow/apis/general-runtime.md) · [All operations](https://skmtc.dev/voiceflow/apis/general-runtime/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voiceflow/general-runtime/revisions/6b1c4f778c56/schema)
