hosting

POST /v1/media-offload/report

What the WordPress plugin says it has offloaded so far.

Tutti gli endpoint hosting

Autenticazione

Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.

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 POST https://api.zinndigital.com/v1/media-offload/report \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "objects_offloaded": <integer>, "bytes_offloaded": <integer> }'

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

Called by the Zinn® Media Offload plugin with a bearer plugin token, to report its progress and receive the settings it should currently apply. **These numbers are a diagnostic and never a bill.** They come from a plugin on the customer's own server, so a customer wanting a smaller invoice could simply send smaller ones. Storage is metered by measuring the bucket. What this endpoint feeds is the dashboard's "your plugin last checked in nine minutes ago and has moved 4,102 files".

Corpo della richiesta

NomeTipoObbligatorioChe cos'è
objects_offloadedinteger
bytes_offloadedinteger
plugin_versionstringNo

Risposta

NomeTipoObbligatorioChe cos'è
statusstring
rewrite_urlsboolean
delete_localboolean
prefixstring
public_base_urlstringNo

Errori che questo endpoint può restituire

401 · 429