ການພິສູດຕົວຕົນ

ສົ່ງລະຫັດ API ເປັນ bearer token. ລະຫັດຕ້ອງມີສິດ sites.create; ລະຫັດທີ່ບໍ່ມີສິດດັ່ງກ່າວຈະຖືກປະຕິເສດດ້ວຍລະຫັດ 403, ບໍ່ແມ່ນ 404.

ຈຸດເຊື່ອມຕໍ່ນີ້ບໍ່ໄດ້ຮັບ ID ອົງກອນ. ລະຫັດຂອງທ່ານໄດ້ລະບຸອົງກອນທີ່ມັນຂຶ້ນກັບແລ້ວ, ແລະ ຄໍາຕອບແມ່ນຖືກຈໍາກັດຂອບເຂດໄວ້ສໍາລັບອົງກອນນັ້ນ.

ລອງໃຊ້ເບິ່ງ

ປ່ຽນແທນທຸກຢ່າງທີ່ຢູ່ໃນວົງເລັບມຸມດ້ວຍຄ່າຂອງທ່ານເອງ, ແລະ ປ່ຽນແທນຕົວແທນບ່ອນວ່າງຄີດ້ວຍຄີຈາກແຜງຄວບຄຸມຂອງທ່ານ.

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