hosting

DELETE /v1/storage/buckets/{bucketId}

Forget a bucket.

Tutti gli endpoint hosting

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione storage.manage; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

curl -X DELETE https://api.zinndigital.com/v1/storage/buckets/{bucketId} \
  -H "Authorization: Bearer zdk_live_…"

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

Removes the bucket record and, for a bucket of your own, deletes its stored credential. A bucket still serving media for one or more sites answers `422` and names them: deleting it would leave every rewritten image URL in those sites' published posts pointing at a bucket the platform no longer knows about, and the person pressing delete on a storage screen has no way to know that. Turn media offload off on those sites first. Requires `storage.manage`.

Parametri

NomeTipoObbligatorioChe cos'è
bucketId (path)stringThe bucket's id.

Errori che questo endpoint può restituire

401 · 403 · 404 · 422 · 429