hosting

POST /v1/sites/{siteId}/offsite/restore

Overwrite the site from a copy held in the customer's own storage.

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

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

אימות

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

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

נסה זאת

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

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/offsite/restore \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "copy_id": <string> }'

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

פרטים

Destructive: the site's current files and database are replaced. Each archive is decrypted and its HMAC verified before the restore can use a byte of it; a copy altered at the destination is refused. Incremental copies restore with every archive they depend on. Requires hosting.backup.manage.

פרמטרים

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

גוף הבקשה

שםסוגנדרשמה זה
copy_idstringכן

תשובה

שםסוגנדרשמה זה
workflow_idstringכן
stateSiteOffsiteכן

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

401 · 403 · 404 · 422 · 503