hosting
DELETE /v1/sites/{siteId}/mysql-access/{userId}/{aclId}
Withdraw one MySQL access rule.
Authentifizierung
Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung sites.panel_access verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.
Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.
Ausprobieren
Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/mysql-access/{userId}/{aclId} \
-H "Authorization: Bearer zdk_live_…"Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole
Details
Requires `sites.panel_access`. Confirmed by re-reading the rules afterwards, because the vendor answers the same body whether the withdrawal happened or not.
Parameter
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
siteId (path) | Uuid | Ja | Site ID (UUIDv7). |
userId (path) | integer | Ja | The vendor's database-user id. |
aclId (path) | integer | Ja | The grant's own id. ⛔ The only handle that removes it — the address is not sufficient, and a request keyed by address is accepted and withdraws nothing. |
Antwort
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
data | SiteMysqlAccessUser[] | Ja | — |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 403 · 404 · 422 · 429 · 503