hosting

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

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

Svi hosting krajnji točke

Sva developerska dokumentacija

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu hosting.backup.manage; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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.

Parametri

NazivVrstaObaveznoŠto je to
siteId (path)UuidDaSite ID (UUIDv7).
cloneId (path)UuidDaThe id of a row from listSiteClones.

Odgovor

NazivVrstaObaveznoŠto je to
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
blueprint_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_namestringDa
site_domainstringDa
site_statusstringDaThe new site's status, or deleted when it no longer exists.
stepSiteCloneStepDacopying — 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.
messagestringDaWhy it failed, or what still needs attention. English; shown verbatim.
can_retrybooleanDaWhether retrySiteClone will accept this row.
created_atstringDa
finished_atobjectNe

Pogreške koje ova krajnja točka može vratiti

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