hosting
DELETE /v1/sites/{siteId}/ftp-users/{ftpUserId}
Delete an FTP account from a site.
Tabbatar da Asali
Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin sites.manage; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.
Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.
Gwada
May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.
curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/ftp-users/{ftpUserId} \
-H "Authorization: Bearer zdk_live_…"An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API
Bayani
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.manage`.
Sigogi
| Suna | Nau'i | Ana buƙata | Abin da yake |
|---|---|---|---|
siteId (path) | Uuid | Eh | Site ID (UUIDv7). |
ftpUserId (path) | string | Eh | The account id returned by `listSiteFtpUsers`. |
Kuskuren da wannan matsaya za ta iya maido wa
401 · 403 · 404 · 409 · 422 · 429 · 503