hosting

POST /v1/sites/{siteId}/deploy

Deploy or redeploy a site.

সমস্ত hosting এন্ডপয়েন্ট

প্রমাণীকরণ

একটি বিয়ারার টোকেন হিসেবে একটি এপিআই কি পাঠান। কি-টির অবশ্যই hosting.deploy.manage অনুমতি থাকতে হবে; এটি ছাড়া কোনো কি ৪০৪ নয়, বরং ৪০৩ ত্রুটি দিয়ে প্রত্যাখ্যাত হবে।

এই এন্ডপয়েন্টটি কোনো অর্গানাইজেশন আইডি নেয় না। আপনার কীটি ইতিমধ্যে এটি যে অর্গানাইজেশনের অন্তর্গত তা শনাক্ত করে এবং প্রতিক্রিয়াটি সেই অনুযায়ী নির্ধারিত হয়।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

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

লগ ইন করা আছে? আপনার ড্যাশবোর্ডের এপিআই কনসোল আপনার আসল অর্গানাইজেশন আইডি এবং আপনার নিজের কি পূরণ করে দেয়, এবং লাইভ এপিআই-এর বিপরীতে অনুরোধটি চালায় যাতে আপনি প্রকৃত প্রতিক্রিয়া দেখতে পান। এই এন্ডপয়েন্টটি এপিআই কনসোলে খুলুন

বিবরণ

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