hosting
DELETE /v1/sites/{siteId}/mysql-access/{userId}/{aclId}
Withdraw one MySQL access rule.
Authenticatie
Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie sites.panel_access beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/mysql-access/{userId}/{aclId} \
-H "Authorization: Bearer zdk_live_…"Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
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.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
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. |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
data | SiteMysqlAccessUser[] | Ja | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404 · 422 · 429 · 503