cURL
curl --request PUT \ --url https://api.example.com/api/secrets/{key} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "value": "<string>", "isActive": true, "isReserved": true, "expiresAt": "2023-11-07T05:31:56Z" } '
{ "success": true, "message": "Secret STRIPE_API_KEY has been updated successfully" }
Update an existing secret’s value or metadata
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Secret key identifier
New secret value (will be encrypted)
Whether the secret is active
Whether the secret is protected from deletion
Expiration date (null to remove expiration)
Secret updated successfully