PATCH

Partially Update Secret


Updates 1 or all fields of a secret.

To get the secret ID, call List Secret Info.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Secrets
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/_api/cloud-secrets-vault-server/api/v1/secrets/{id}

Path Params
idstringRequired

ID of the secret to update.

Body Params
secretSecretRequired

Details of a secret.

Response Object
Returns an empty object.
Partially Update Secret Example 1
Request
cURL
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" } }'
Response
JSON
{}
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?