hosting

POST /v1/sites/{siteId}/clones/{cloneId}/retry

Finish a copy that failed, onto the same new site.

Všechny koncové body hosting

Všechny dokumenty pro vývojáře

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění hosting.backup.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

Recovery goes to the step that failed: when the copy of this site was never made a new one is taken, and when it was it is reused. Either way it is restored onto the SAME new site, so a half-built site never has to be deleted to try again. 409 when the copy has not failed; 422 when its new site has been deleted. Requires hosting.backup.manage, because it overwrites the new site's content.

Parametry

NázevTypPožadovánoCo to je
siteId (path)UuidAnoSite ID (UUIDv7).
cloneId (path)UuidAnoThe id of a row from listSiteClones.

Odpověď

NázevTypPožadovánoCo to je
idUuidAnoUUIDv7 identifier — sortable by creation time (docs/02 §8).
blueprint_idUuidAnoUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidAnoUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_namestringAno
site_domainstringAno
site_statusstringAnoThe new site's status, or deleted when it no longer exists.
stepSiteCloneStepAnocopying — the copy of the original is being taken; waiting — the new site is still being built; restoring — the copy is being put onto it; done; failed.
messagestringAnoWhy it failed, or what still needs attention. English; shown verbatim.
can_retrybooleanAnoWhether retrySiteClone will accept this row.
created_atstringAno
finished_atobjectNe

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 409 · 422 · 429 · 503