Updates 1 or all fields of a secret.
To get the secret ID, call List Secret Info.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the secret to update.
Details of a secret.
curl -X PATCH 'https://www.wixapis.com/_api/cloud-secrets-vault-server/api/v1/secrets/a560ff70-3e9b-41b6-b66d-cf3434085f7d' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"secret": {
"name": "updated_secret_key",
"description": "AWS secret access key",
"value": "44aSQCljxL9FLvTVA.9dKbpwueYoQ8isyQhvun19pOT9gHEdgxam39LJ0Ts70"
}
}'
{}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.