hosting

POST /v1/sites/{siteId}/deploy

Deploy or redeploy a site.

Gbogbo àwọn hosting endpoints

Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda hosting.deploy.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ojú abánisọ̀rọ̀ yìí kò gba id ajọ kankan. Kọ́kọ́rọ́ rẹ ti mọ ajọ ti o jẹ ti e, a o si fèsì nipa rẹ̀.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

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

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

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`.

Àwọn ìpìlẹ̀

OrúkọIruTí a nílòKini o jẹ
siteId (path)UuidBẹẹniSite ID (UUIDv7).
Idempotency-Key (header)stringBẹẹkọClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Idahun

OrúkọIruTí a nílòKini o jẹ
site_idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullBẹẹniNull when no target can be derived yet.
statusDeployStatusBẹẹni`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_atobjectBẹẹniWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectBẹẹniThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectBẹẹniSource repository for the Pages targets, else null.
commitobjectBẹẹniThe deployed commit ref, else null.
messageobjectBẹẹniWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanBẹẹniFalse while a deploy is in flight or the site cannot be deployed.

Awọn aṣiṣe ti ibudo ipari yii le da pada

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