hosting
POST /v1/webhooks/git/{provider}/{repoId}
Ingest a push from a customer's git provider and deploy it.
Kimlik Doğrulama
Bu uç nokta arakatmana açıktır. Kimlik bilgisi ve organizasyon gerektirmez; kendi pazarlama sitemizin ve yapay zeka yanıt motorlarımızın okuduğu yerdir.
Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X POST https://api.zinndigital.com/v1/webhooks/git/{provider}/{repoId}Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
Unauthenticated by design — the git provider holds no Zinn® credential, so the signature over the raw body is the authentication. A verified push on the branch a repository is wired to triggers a deploy of that site. ⛔ The repoId in the path identifies which connection's secret verifies the signature; it is not a permission. A request whose signature does not verify is refused before anything is read from it.
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
provider (path) | string<github, gitlab, bitbucket> | Evet | The git host that sent the push. |
repoId (path) | string | Evet | The connected repository this push belongs to. |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
status | string<handled, ignored, duplicate> | Evet | handled — acted on. ignored — a valid event of a type Zinn® does not consume. duplicate — already processed; Stripe may stop redelivering. |
Bu uç noktanın dönderebileceği hatalar
400 · 404