hosting

POST /v1/sites/{siteId}/website-backups

Take a standard backup of a site's files and databases.

Toate punctele finale hosting

Autentificare

Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea hosting.backup.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.

Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.

Încearcă

Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.

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

Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API

Detalii

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`.

Parametri

NumeTipObligatoriuCe este
siteId (path)UuidDaSite ID (UUIDv7).

Răspuns

NumeTipObligatoriuCe este
availablebooleanDaWhether this site runs on a hosting package with a standard-backup surface at all. `false` renders nothing rather than an empty list.
retention_hoursintegerDaHow 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.
backupWebsiteBackupDaThe 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.

Erori pe care le poate returna acest punct final

401 · 403 · 404 · 422 · 429 · 503