hosting
POST /v1/sites/{siteId}/clones/{cloneId}/retry
Finish a copy that failed, onto the same new site.
Authentification
Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation hosting.backup.manage ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.
Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.
Essayer
Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/clones/{cloneId}/retry \
-H "Authorization: Bearer zdk_live_…"Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API
Détails
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.
Paramètres
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
siteId (path) | Uuid | Oui | Site ID (UUIDv7). |
cloneId (path) | Uuid | Oui | The id of a row from listSiteClones. |
Réponse
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
id | Uuid | Oui | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
blueprint_id | Uuid | Oui | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_id | Uuid | Oui | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_name | string | Oui | — |
site_domain | string | Oui | — |
site_status | string | Oui | The new site's status, or deleted when it no longer exists. |
step | SiteCloneStep | Oui | 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 | Oui | Why it failed, or what still needs attention. English; shown verbatim. |
can_retry | boolean | Oui | Whether retrySiteClone will accept this row. |
created_at | string | Oui | — |
finished_at | object | Non | — |
Erreurs que cet point de terminaison peut renvoyer
401 · 403 · 404 · 409 · 422 · 429 · 503