hosting
POST /v1/sites/{siteId}/clones/{cloneId}/retry
Finish a copy that failed, onto the same new site.
Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл hosting.backup.manage; ключ без нього відхиляється з кодом 403, а не 404.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/clones/{cloneId}/retry \
-H "Authorization: Bearer zdk_live_…"Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API
Деталі
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.
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
siteId (path) | Uuid | Так | Site ID (UUIDv7). |
cloneId (path) | Uuid | Так | The id of a row from listSiteClones. |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
blueprint_id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_name | string | Так | — |
site_domain | string | Так | — |
site_status | string | Так | The new site's status, or deleted when it no longer exists. |
step | SiteCloneStep | Так | copying — 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. |
message | string | Так | Why it failed, or what still needs attention. English; shown verbatim. |
can_retry | boolean | Так | Whether retrySiteClone will accept this row. |
created_at | string | Так | — |
finished_at | object | Ні | — |
Помилки, які може повертати ця кінцева точка
401 · 403 · 404 · 409 · 422 · 429 · 503