## UpdateSecretValue `secrets.update_value(SecretUpdateValueParams**kwargs) -> object` **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" ``` ### Parameters - `secret_id: Optional[str]` - `value: Optional[str]` value is the plaintext value of the secret ### Returns - `object` ### Example ```python import os from gitpod import Gitpod client = Gitpod( bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted ) response = client.secrets.update_value( secret_id="d2c94c27-3b76-4a42-b88c-95a85e392c68", value="new-secret-value", ) print(response) ``` #### Response ```json {} ```