hosting
GET /v1/hosting/applications
List the applications a NEW site on a product line can be built with.
Նույնականացում
Ուղարկեք API բանալին որպես bearer թոքեն։ Այս վերջնակետը բնութագրում չի նշում որոշակի թույլտվության մասին, ուստի տվեք ձեր բանալուն նվազագույն անհրաժեշտը և ենթադրություններ անելու փոխարեն ստուգեք պատասխանը:
Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:
Փորձել
Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:
curl -X GET https://api.zinndigital.com/v1/hosting/applications \
-H "Authorization: Bearer zdk_live_…"Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում
Մանրամասներ
The platform-level sibling of `GET /v1/hosting/locations`: authenticated but not tenant-scoped, because it is a statement about what this platform sells rather than about any customer's estate. It exists because the create-site form needs the application list at the one moment no site — and therefore no hosting package — exists to read it from. Scoped by `product_line`, and that narrowing is the point: the footprint-free line deliberately offers a narrower set than mainstream. A missing or unknown `product_line` answers an **empty list**, never everything — an unfiltered fallback would show a footprint-free customer the helpdesks and CRMs that line exists to keep off their sites.
Պարամետրեր
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
product_line (query) | string | Ոչ | The product line to answer for, e.g. `mainstream`. |
Պատասխան
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
data | SiteApplication[] | Այո | — |
Այս վերջնակետի կողմից վերադարձվող սխալները
401 · 403 · 429