Request
POST https://api.virtuscloud.app/v2/databases/{databaseId}/credentials/reset
Headers
Your Virtus Cloud API key. Pass it directly as the header value — no prefix required.Example:
Authorization: vc_live_xxxxxxxxxxxxPath Parameters
The unique identifier of the database whose credentials you want to reset.
Body
The credential type to rotate. Accepted values:
"password"— generates a new database password and returns it in the response."certificate"— issues a new TLS certificate, revoking the previous one.
Response
Returns
"success" when the credential reset completes successfully.Present only when
reset is set to "password". Contains the newly generated password.