reseller
POST /v1/reseller/brand/panel-hostname
Serve your clients' panel on your own address.
Autentizace
Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění reseller.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.
Sem patří ID vaší organizace
Tento koncový bod přijímá org_id jako parametr dotazu. Pokud ho vynecháte, volání pokryje celý podstrom vašeho nájemce; jeho odesláním volání zúžíte na jednu organizaci.
ID vaší organizace najdete na obrazovce API klíčů ve vašem přehledu, hned vedle samotného klíče. Je to stále stejné ID v každém volání, které provedete.
Vyzvednout
Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.
curl -X POST https://api.zinndigital.com/v1/reseller/brand/panel-hostname \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "hostname": <string> }'Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API
Podrobnosti
Registers a custom hostname at the edge and returns the DNS to publish. Requires reseller.manage. Your clients sign in at your address instead of ours — the address bar is what they look at on every single login, and it is the largest remaining piece of white-label. ⛔ Attaching does not make it live and changes no link we emit. Publish the CNAME, then call /verify. A hostname inside a domain Zinn® operates is refused with 422, and a hostname is already attached ⇒ 409.
Parametry
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
org_id (query) | Uuid | Ne | The organization this call acts on. Optional for a caller with exactly one direct membership; required for anyone with more than one — which is every reseller and every agency… |
Tělo požadavku
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
hostname | string | Ano | Just the hostname — panel.acme.com, with no scheme and no path. A hostname inside a domain Zinn® operates is refused. |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
hostname | string | Ano | — |
active | boolean | Ano | Measured by fetching it, not read off the edge's status. See ResellerBrand.panel_hostname_active. |
provider_status | string | Ano | — |
records | BrandDnsRecord[] | Ano | — |
errors | string[] | Ne | The edge's own complaints, verbatim, on the verify response — "custom hostname does not CNAME to this zone" is a sentence a customer can act on in thirty seconds, where… |
Chyby, které může tento koncový bod vrátit
401 · 403 · 409 · 422 · 429 · 503