Skip to main content
POST
/
v1
/
databases
/
{id}
/
credentials
/
reset
Reset Database Password
curl --request POST \
  --url https://api.vertracloud.app/v1/databases/{id}/credentials/reset
{
  "response": {
    "password": "a1b2c3d4e5f6g7h8"
  }
}
id
string
required
The ID of the database to reset the password for.

Response

response
object
The response containing the new password.
{
  "response": {
    "password": "a1b2c3d4e5f6g7h8"
  }
}

Error Responses

code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • DATABASE_NOT_FOUND_OR_FORBIDDEN: The specified database does not exist or the user lacks access.
  • INVALID_PLAN_CONFIG: The database plan configuration is invalid.
  • FAILED_TO_REBUILD_DATABASE: Failed to rebuild the database with the new password.
message
string
A descriptive message providing additional details about the error.
{
  "code": "UNAUTHORIZED"
}