hosting

POST /v1/media-offload/report

What the WordPress plugin says it has offloaded so far.

すべての hosting エンドポイント

認証

ベアラー トークンとして API キーを送信します。このエンドポイントでは仕様に特定の権限が記載されていないため、キーに必要な最小限の権限を付与し、推測するのではなくレスポンスを確認してください。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

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> }'

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

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

リクエスト本文

名前タイプ必須これがその内容です
objects_offloadedintegerはい
bytes_offloadedintegerはい
plugin_versionstringいいえ

返信

名前タイプ必須これがその内容です
statusstringはい
rewrite_urlsbooleanはい
delete_localbooleanはい
prefixstringはい
public_base_urlstringいいえ

このエンドポイントが返すエラー

401 · 429