Updates the specified fields of an existing secret by ID.
The updateSecret()
function returns a Promise that resolves when the secret is successfully updated. You can update one or more fields. Only fields passed in the secret
object will be updated. All other properties will remain unchanged.
You can retrieve the _id
parameter from the listSecretInfo()
function. The secret _id
is different from the secret name
used by the getSecretValue()
function.
Notes:
updateSecret()
.This function requires elevated permissions and runs only on the backend and on dashboard pages.
ID of the secret to update.
Details of a secret.