hosting

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

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

Wszystkie punkty końcowe hosting

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie hosting.backup.manage; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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

NazwaTypWymaganeCo to jest
siteId (path)UuidTakSite ID (UUIDv7).
cloneId (path)UuidTakThe id of a row from listSiteClones.

Odpowiedź

NazwaTypWymaganeCo to jest
idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
blueprint_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_namestringTak
site_domainstringTak
site_statusstringTakThe new site's status, or deleted when it no longer exists.
stepSiteCloneStepTakcopying — 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.
messagestringTakWhy it failed, or what still needs attention. English; shown verbatim.
can_retrybooleanTakWhether retrySiteClone will accept this row.
created_atstringTak
finished_atobjectNie

Błędy, które ten punkt końcowy może zwrócić

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