hosting

POST /v1/sites/{siteId}/deploy

Deploy or redeploy a site.

ټول hosting پای ټکي

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د hosting.deploy.manage اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.

دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.

هڅه وکړئ

د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.

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

ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ

تفصیلات

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

پارامترونه

نومډولاړیندا څه شی دی
siteId (path)UuidهوSite ID (UUIDv7).
Idempotency-Key (header)stringنهClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

ځواب

نومډولاړیندا څه شی دی
site_idUuidهوUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullهوNull when no target can be derived yet.
statusDeployStatusهو`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_atobjectهوWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectهوThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectهوSource repository for the Pages targets, else null.
commitobjectهوThe deployed commit ref, else null.
messageobjectهوWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanهوFalse while a deploy is in flight or the site cannot be deployed.

تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي

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