hosting

GET /v1/sites/{siteId}/content

Whether anything has been published to a site yet.

כל נקודות הקצה מסוג hosting

כל תיעוד המפתחים

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/content \
  -H "Authorization: Bearer zdk_live_…"

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

empty when the site has nothing to serve — on our own servers, no index.php, index.html or index.htm in its document root; on an edge host, no deployment that went live. present when it has content, and unknown when the server could not be asked, which a client must never render as empty. Content uploaded by FTP, SSH or an import counts, because the server is asked rather than the deploy history. An empty site's own domain serves a holding page to visitors until something is published. Not polled: the answer is reused for two minutes. Requires sites.view.

פרמטרים

שםסוגנדרשמה זה
siteId (path)UuidכןSite ID (UUIDv7).

תשובה

שםסוגנדרשמה זה
site_idstringכן
statestring<empty, present, unknown>כןunknown means the server could not be asked — never render it as empty.

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 404 · 429