hosting

POST /v1/sites/{siteId}/deploy

Deploy or redeploy a site.

Dhammaan hosting bixiyayaasha

Xaqiijinta aqoonsiga

U dir furaha API ah calaamad dusha ah (bearer token). Furaha waa inuu wataa ruqadda hosting.deploy.manage; furaha aan wadan waxaa loo diidayaa 403, ee ma aha 404.

Boggan ma qaato aqoonsiga ururka. Furahaagu wuxuu horay u aqoonsanayaa ururka uu ka tirsan yahay, jawaabtuna waxay ku kooban tahay halkaas.

Isku day

Ku beddel wax kasta oo ku dhex jira qeebaha xaglaha ah qiimayaashaada, sidoo kalena haystaaha furaha ku beddel fure ka dhex muuqda dashboordigaaga.

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

Ma sign-garaysay? Qalabka API ee ku jira dashboard-kaagu wuxuu buuxiyaa aqoonsigaaga ururka ee dhabta ah iyo furahaaga gaarka ah, wuxuuna ku shaqeysiiyaa codsiga API-ga nool si aad u aragto jawaabta dhabta ah. Kani ka fur barta kontoroolka ee API

Details

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

Cabiraha

MagacaNoocLoo baahan yahayMaxay tahay
siteId (path)UuidHaaSite ID (UUIDv7).
Idempotency-Key (header)stringMayaClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Jawaab

MagacaNoocLoo baahan yahayMaxay tahay
site_idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullHaaNull when no target can be derived yet.
statusDeployStatusHaa`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_atobjectHaaWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectHaaThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectHaaSource repository for the Pages targets, else null.
commitobjectHaaThe deployed commit ref, else null.
messageobjectHaaWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanHaaFalse while a deploy is in flight or the site cannot be deployed.

Cilladaha ay bartaani soo celin karto

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