POST
/
v1
/
databases
/
{id}
/
reset
Reset Database
curl --request POST \
  --url https://api.vertracloud.app/v1/databases/{id}/reset \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "response": {
    "id": "639d9aa35d8b4e559bcd066db4ddcc8c"
  }
}
id
string
required
The ID of the database to reset.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
response
object
The details of the reset database.
{
  "status": "success",
  "response": {
    "id": "639d9aa35d8b4e559bcd066db4ddcc8c"
  }
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
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: The specified database does not exist or the user lacks access.
  • DATABASE_ID_REQUIRED: The database ID was not provided.
  • DATABASE_RESET_FAILED: Failed to reset the database.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}