reseller

POST /v1/reseller/brand/font

Install a Google font into our own origin.

Všechny koncové body reseller

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/font \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "family": <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

Send a Google family **name**; we fetch it once, store the woff2 files and serve them from our own hostname. Requires `reseller.manage` and the `white_label` entitlement. ⛔ A separate door from `PUT /v1/reseller/brand`, deliberately: this is the only part of a brand save that makes a network call to a third party, and folding it in would make a typo in a font name refuse a change to your company name. ⭐ Idempotent and shared across the platform. The bytes of *Inter Regular* are the same for everybody and the rows are content-addressed, so the second reseller to install a family costs one query and no egress. ⭐ Four weights are installed — the ones the design system uses. A family can ship eighteen across two axes, and storing all of them would be half a megabyte of rows for weights no component references.

Parametry

NázevTypPožadovánoCo to je
org_id (query)UuidNeThe 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 agen…

Tělo požadavku

NázevTypPožadovánoCo to je
familystringAno

Odpověď

NázevTypPožadovánoCo to je
familystringAno
facesintegerAnoHow many `@font-face` files were stored. ⛔ Never zero on success — a family that returns no usable files is a refusal, because "installed 0 faces" and "this family does not exis…
css_urlstringAnoThe stylesheet, served from our origin.

Chyby, které může tento koncový bod vrátit

401 · 403 · 422 · 429