hosting

POST /v1/sites/deleted/{deletedSiteId}/restore

Restore a deleted site.

બધા hosting એન્ડપૉઇન્ટ્સ

બધા ડેવલપર દસ્તાવેજો

પ્રમાણીકરણ

એપીઆઈ કી (API key) ને બેરર ટોકન તરીકે મોકલો. કી પાસે sites.create પરવાનગી હોવી આવશ્યક છે; તેના વગરની કીને 404 ને બદલે 403 સાથે અસ્વીકાર કરવામાં આવશે.

આ એન્ડપૉઇન્ટ કોઈ સંસ્થા આઈડી (organisation id) લેતું નથી. તમારી કી (key) પહેલેથી જ તે જે સંસ્થા સાથે સંબંધિત છે તેની ઓળખ કરે છે, અને પ્રતિસાદ (response) તે જ પૂરતો મર્યાદિત છે.

આયમાવો

કોઈપણ કૌંસમાં રહેલી બાબતને તમારા પોતાના મૂલ્યોથી બદલો અને કી પ્લેસહોલ્ડરને તમારા ડેશબોર્ડની કીથી બદલો.

curl -X POST https://api.zinndigital.com/v1/sites/deleted/{deletedSiteId}/restore \
  -H "Authorization: Bearer zdk_live_…"

साइन ઇન કરેલ છે? તમારા ડેશબોર્ડમાં આવેલું API કન્સોલ તમારી વાસ્તવિક સંસ્થાની આઈડી અને તમારી પોતાની કી ભરે છે, અને લાઇવ API સામે વિનંતી ચલાવે છે જેથી તમે વાસ્તવિક પ્રતિસાદ જોઈ શકો. આ અંતિમબિંદુને API કન્સોલમાં ખોલો

વિગતો

Brings a deleted site back. Answers 202 — the site is rebuilt by a workflow, and returns to suspended rather than active until it is actually serving again. ⛔ The guard is re-evaluated on this request, never trusted from the button. Between the list rendering and the click the customer may have recreated a site on the same domain, the retention window may have closed, or the purge may have run. A 422 carries the machine-readable reason (no_backup, purged, domain_in_use, already_restored, abuse_hold) so the client can say which it was. Requires sites.create as well as sites.view: a restore creates a live site.

પેરામીટર્સ

નામપ્રકારજરૂરીતે શું છે
deletedSiteId (path)UuidહાThe DeletedSite record id (not the site id).

જવાબ

નામપ્રકારજરૂરીતે શું છે
idUuidહાUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidહાThe site this was. May no longer exist as a row.
org_idUuidહાUUIDv7 identifier — sortable by creation time (docs/02 §8).
primary_domainstringહા
reasonstring<dunning, customer, staff, abuse>હાWhy it was deleted. abuse is restorable by staff only — a one-click customer restore of a site removed for terms enforcement would undo the enforcement.
deleted_atstringહાSoft delete — removed from serving. The data is still here.
deleted_bystringના
purge_due_atstringનાWhen the backup is purged and the site becomes permanently unrecoverable. ⛔ Computed by the engine from the live retention policy, by the same function the purge sweep selects…
purged_atstringનાHard delete. Non-null means the data is gone and no restore is possible.
restored_atstringના
restorablebooleanહાWhether a restore would succeed right now. Reflects a real check that the backup object exists in storage — not a status column.
reason_codestring<, no_backup, purged, domain_in_use, already_restored, abuse_hold>હાEmpty when restorable. Otherwise one of no_backup, purged, domain_in_use, already_restored, abuse_hold. ⛔ A code, rendered by the client through its own catalogue —…

આ એન્ડપોઇન્ટ જે ભૂલો પરત કરી શકે છે

401 · 403 · 404 · 422 · 429 · 503