hosting

POST /v1/sites/{siteId}/deploy

Deploy or redeploy a site.

Minden hosting végpont

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) hosting.deploy.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.

Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

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

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

Starts a durable deploy workflow and returns immediately with the new in-flight state. The target is derived from the site's stack and its connected accounts; there is no target to choose. A site with a deploy already running returns `DEPLOY_IN_PROGRESS`, and one with no usable target returns `DEPLOY_TARGET_UNAVAILABLE`. Requires `hosting.deploy.manage`.

Paraméterek

NévTípusKötelezőMi ez
siteId (path)UuidIgenSite ID (UUIDv7).
Idempotency-Key (header)stringNemClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Válasz

NévTípusKötelezőMi ez
site_idUuidIgenUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullIgenNull when no target can be derived yet.
statusDeployStatusIgen`idle` means the site has never been deployed. It is reported, never stored — a stored idle would be a second way to say "no deployments" that could contradict the first.
last_deployed_atobjectIgenWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectIgenThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectIgenSource repository for the Pages targets, else null.
commitobjectIgenThe deployed commit ref, else null.
messageobjectIgenWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanIgenFalse while a deploy is in flight or the site cannot be deployed.

Hibák, amelyeket ez a végpont visszaadhattatlan

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