Skip to main content
client.secrets().updateSecret() changes a secret’s value, name, comment, tags, or other settings. The settings that you don’t pass stay as they are. The machine identity needs a role in the project that can change secrets, such as Member. If the folder has an approval policy, Infisical opens a change request instead of updating the secret, and returns the change request in approval.

Parameters

string
required
The current name of the secret.
UpdateSecretOptions
required

Returns

UpdateSecretResponse