hosting

DELETE /v1/storage/buckets/{bucketId}

Forget a bucket.

Bütün hosting nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Açar storage.manage icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

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

Parametrlər

AdTipTələb olunurNədir
bucketId (path)stringBəliThe bucket's id.

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 422 · 429