---
title: "UpdateSecretValue"
method: POST
path: "/gitpod.v1.SecretService/UpdateSecretValue"
tags: ["gitpod.v1.SecretService"]
---

# UpdateSecretValue

`POST /gitpod.v1.SecretService/UpdateSecretValue`

Updates the value of an existing secret.

 Use this method to:
 - Rotate secret values
 - Update credentials

 ### Examples

 - Update secret value:

   Changes the value of an existing secret.

   ```yaml
   secretId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   value: "new-secret-value"
   ```

## Request body

- GitpodV1UpdateSecretValueRequest
  - `secretId` string, uuid
  - `value` string — value is the plaintext value of the secret

## Response `200`

Success

- GitpodV1UpdateSecretValueResponse

## Other responses

- `default` — Error

## Changes

> 18 revisions in range; 1 could not be searched.

- **2025-12-15** `d62ef4b9187c` — 1 info
  - the `value` request property's maxLength was increased from `4096` to `10240`
- **2025-02-18** `cd6a05ae99d2` — 1 warning
  - removed the optional property `detail` from the response with the `default` status

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.SecretService/UpdateSecretValue/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
