domains
POST /v1/domains/{domainId}/cache/purge
Purge a domain's CDN cache.
אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.cache.purge; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/cache/purge \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
Purge the CDN cache for a domain now. Omit `urls` to purge everything, or pass a bounded list of absolute URLs to purge only those. Exposed on the dashboard and the MCP server through the same service, so the two cannot diverge (docs/19 §5.4). A domain not served through our CDN is a `404`. Requires `sites.cache.purge`.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
domainId (path) | Uuid | כן | The domain's id. |
גוף הבקשה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
urls | string[] | לא | Absolute URLs to purge. Omit or empty to purge all cached content. |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
purged | boolean | כן | — |
urls | integer | כן | How many URLs were targeted (0 = a full purge). |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 429