domains

POST /v1/domains/{domainId}/cache/purge

Purge a domain's CDN cache.

ሁሉም የ domains ማጠናቀቂያ ነጥቦች

ማረጋገጫ

የAPI ቁልፉን እንደ bearer token ይላኩ። ቁልፉ የsites.cache.purge ፈቃድ ሊኖረው ይገባል፤ ይህ ፈቃድ የሌለው ቁልፍ በ404 ሳይሆን በ403 ውድቅ ይደረጋል።

ይህ ኤንድፖይ መክፈቻ (endpoint) የድርጅት መታወቂያ (organisation id) አይወስድም። የእርስዎ ቁልፍ (key) እሱ የሚመለከተውን ድርጅት አስቀድሞ ይለያል፣ እና ምላሹም ለዚሁ የተወሰነ ነው።

ሞክሩት

በቅንፍ ውስጥ ያለውን ማንኛውንም ነገር በራስዎ እሴቶች ይተኩ፣ እና ቁልፍ ቦታ ያዢውን ከዳሽቦርድዎ በመጣ ቁልፍ ይተኩ።

curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/cache/purge \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

ገብተዋል? የመቆጣጠሪያ ማዕከልዎ ውስጥ ያለው የኤፒአይ ኮንሶል ትክክለኛውን የድርጅት መታወቂያዎን እና የራስዎን ቁልፍ ይሞላል፣ እና ትክክለኛውን ምላሽ ማየት እንዲችሉ ጥያቄውን በቀጥታ ከሚሰራው ኤፒአይ ጋር ያካሂደዋል። ይህን ኤንድፖይንት በ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.

የጥያቄ አካል

ስምዓይነትየሚያስፈልግምንነቱ
urlsstring[]አይAbsolute URLs to purge. Omit or empty to purge all cached content.

ምላሽ

ስምዓይነትየሚያስፈልግምንነቱ
purgedbooleanአዎ
urlsintegerአዎHow many URLs were targeted (0 = a full purge).

ይህ ማብቂያ ሊመልሳቸው የሚችሉ ስህተቶች

401 · 403 · 404 · 429