API-Dokumentation

Datenbank-Passwort zurücksetzen

Neues MariaDB-Passwort generieren. Das Klartext-Passwort wird einmal zurückgegeben — sofort speichern.

Erforderlicher Scope: webspace:manage

Header

Header Erforderlich Wert
Authorization Ja Bearer DEIN_API_SCHLÜSSEL

Antwort

{
  "data": {
    "id": "69e80ac1...",
    "subdomain": "ws-0862c.sitequest.eu",
    "dbName": "ws_0862c_db",
    "dbUser": "ws_0862c",
    "dbPassword": "Z9v…",
    "dbHost": "localhost",
    "warning": "Store this password now — it will not be shown again."
  }
}

Antwortfelder

Feld Typ Beschreibung
dbPassword string Wird nur einmal zurückgegeben. Kann später nicht abgefragt werden.
dbHost string MariaDB-Host. Immer localhost (nur aus dem Webspace erreichbar).

Beispiel

curl -X POST https://hosting.site.quest/api/v1/webspaces/69e80ac1.../db/password \
  -H "Authorization: Bearer sq_live_..."

MCP

Diese Aktion ist auch über das webspace_reset_db_password MCP-Tool verfügbar.