ai

POST /v1/ai/site-builds/{siteBuildId}/rebuild

Build the site again from its brief, optionally tweaked.

Tous les points de terminaison ai

Authentification

Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation sites.create ; 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/ai/site-builds/{siteBuildId}/rebuild \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

Runs the builder again on this draft's stored brief. Send `brief` to change it first; omit it to rebuild from exactly what was asked for before. Like `createSiteBuild`, the new draft is returned in `generating` and settles through the same workflow. **A rebuild creates a NEW draft and never edits this one.** The original keeps its files, its cost and — if it was published — its live URL, because the customer paid for it and may be about to decide they preferred it. The new draft records `rebuilt_from` so a screen can show the lineage. It costs exactly what a first build costs and is metered identically; there is no discount for reusing the brief, because the model does the same work. Requires `sites.create` — the same authority as building the first one, and a stronger one than reading a draft, because this spends money.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
siteBuildId (path)UuidOui

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
briefstringNonThe tweaked description. Omit to rebuild from the brief already stored. An empty string is refused rather than treated as "no brief".
providerstringNon
modelstringNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
buildSiteBuildOuiOne "describe a site and we build it" run. `files` is present on the **detail** and create responses and absent from the **list**, deliberately: a generated tree can be a hundre…
trialSiteBuilderTrialNonThe **one-time** free allowance for the AI site builder. One grant per organization, for ever — not monthly, and not per site. `granted` is true because the credit was actually…

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 404 · 422 · 429