reseller

PUT /v1/reseller/edge-policy

Turn CDN or DNS networks on and off for your clients.

Усі кінцеві точки reseller

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл reseller.manage; ключ без нього відхиляється з кодом 403, а не 404.

Де вказується ідентифікатор вашої організації

Цей ендпоїнт приймає org_id як параметр запиту. Залиште його порожнім, і виклик охопить увесь ваше дерево орендарів; надішліть його, щоб звузити виклик до однієї організації.

Ідентифікатор вашої організації знаходиться на екрані API-ключів у вашій панелі керування, поруч із самим ключем. Це той самий ідентифікатор у кожному вашому запиті.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X PUT https://api.zinndigital.com/v1/reseller/edge-policy \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "disabled": <ResellerEdgeVendorRef[]> }'

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

Send the **complete** set of networks you are turning off; anything absent is on. This is a placement rule, not a display preference: a network you turn off disappears from your clients' site-creation picker, is refused if they name it directly, and is not used when Zinn® places a new site. **Sites already running are never moved** — a live site keeps the network it is on, so nothing goes down when you change what you offer. You can only narrow what your pool serves, never add a network, and turning off every network in a category is refused because your clients could then create no sites at all. Requires `reseller.manage`.

Параметри

НазваТипОбов'язковеЩо це таке
org_id (query)UuidНіWhich of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 r…

Тіло запиту

НазваТипОбов'язковеЩо це таке
disabledResellerEdgeVendorRef[]ТакThe **complete** set of networks to turn off. Anything absent is turned on, so send the full state rather than a change — two screens open at once cannot then leave a switch beh…

Відповідь

НазваТипОбов'язковеЩо це таке
dataResellerEdgeVendor[]ТакEvery CDN and DNS network your clients could be placed on, in category then alphabetical order. The list reflects **your** pool: your own connected accounts if you have any, oth…

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422 · 429