hosting

POST /v1/sites/{siteId}/deploy

Deploy or redeploy a site.

Dukkan hosting wuraren ƙarshe

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin hosting.deploy.manage; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

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

Sigogi

SunaNau'iAna buƙataAbin da yake
siteId (path)UuidEhSite ID (UUIDv7).
Idempotency-Key (header)stringA'aClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Martani

SunaNau'iAna buƙataAbin da yake
site_idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
targetDeployTarget | nullEhNull when no target can be derived yet.
statusDeployStatusEh`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_atobjectEhWhen the site last went live, or null if it never has. Null means nothing to show — never zero and never an epoch date.
live_urlobjectEhThe served URL once live, always https, else null. A non-HTTPS value is rejected server-side rather than returned.
repoobjectEhSource repository for the Pages targets, else null.
commitobjectEhThe deployed commit ref, else null.
messageobjectEhWhy the last deploy failed, else null. Rendered to the customer verbatim.
can_deploybooleanEhFalse while a deploy is in flight or the site cannot be deployed.

Kuskuren da wannan matsaya za ta iya maido wa

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