hosting

DELETE /v1/sites/{siteId}/ftp-users/{ftpUserId}

Delete an FTP account from a site.

Všechny koncové body hosting

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

curl -X DELETE https://api.zinndigital.com/v1/sites/{siteId}/ftp-users/{ftpUserId} \
  -H "Authorization: Bearer zdk_live_…"

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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`.

Parametry

NázevTypPožadovánoCo to je
siteId (path)UuidAnoSite ID (UUIDv7).
ftpUserId (path)stringAnoThe account id returned by `listSiteFtpUsers`.

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 409 · 422 · 429 · 503