---
title: "Repair database"
method: PATCH
path: "/api/hosting/v1/accounts/{username}/databases/{name}/repair"
tags: ["Hosting: Databases"]
---

# Repair database

`PATCH /api/hosting/v1/accounts/{username}/databases/{name}/repair`

Repairs corrupted database tables asynchronously.

Use when database errors, crashes, or corruption are reported.
The database name must be the full name returned by the list databases endpoint.

## Path parameters

- `username` string, required
- `name` string, required

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
