hosting
DELETE /v1/sites/{siteId}/ftp-users/{ftpUserId}
Delete an FTP account from a site.
Autentifikacija
Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu sites.view; ključ bez nje se odbija s kodom 403, a ne 404.
Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/ftp-users/{ftpUserId} \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli
Pojedinosti
Removes the account and, with it, whatever was signing in with it — a deployment that still holds those credentials stops working immediately, which is the point. Scoped to the organisation and the site, so an account id belonging to another of the caller's own sites does not resolve here either: the delete URL must not become a way to enumerate what exists elsewhere. The package's own primary account is refused 409 — deleting it takes the package's access with it, and no customer action can put it back. 404 for a site with no vendor hosting package, and for an id that is not on it. Requires sites.view and sites.panel_access.
Parametri
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
siteId (path) | Uuid | Da | Site ID (UUIDv7). |
ftpUserId (path) | string | Da | The account id returned by listSiteFtpUsers. |
Pogreške koje ova krajnja točka može vratiti
401 · 403 · 404 · 409 · 422 · 429 · 503