hosting
POST /v1/sites/{siteId}/website-backups
Take a standard backup of a site's files and databases.
Autentifikimi
Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen hosting.backup.manage; një çelës pa të refuzohet me 403, jo 404.
Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.
Provoje
Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/website-backups \
-H "Authorization: Bearer zdk_live_…"Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së
Detajet
Asks the hosting platform to build a fresh archive of this site's files and databases. `202`, because the platform runs the job afterwards and a `200` would claim an instant we never observed. ⛔ **The response is the new state of the surface, never a bare acknowledgement** — the client writes it straight into its cache, so an empty body would leave the button un-flipped and the poll never started. There is deliberately **no restore verb** on this resource: the platform restores this product from an archive the customer uploads by hand, so a Restore control here could only ever fail. `404` for a site with no vendor hosting package, or one that is not the caller's. Requires `hosting.backup.manage`.
Parametrat
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
siteId (path) | Uuid | Po | Site ID (UUIDv7). |
Përgjigja
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
available | boolean | Po | Whether this site runs on a hosting package with a standard-backup surface at all. `false` renders nothing rather than an empty list. |
retention_hours | integer | Po | How long the platform keeps one. Sent rather than hardcoded in the client so the screen can show a real expiry, and so it cannot drift if the platform changes it. |
backup | WebsiteBackup | Po | The current backup, or `null` when the platform holds none. ⛔ `null` never means we failed to ask — that is an error status, not an empty surface. |
Gabimet që ky pikëndalim mund të kthejë
401 · 403 · 404 · 422 · 429 · 503