reseller
POST /v1/reseller/brand/font
Install a Google font into our own origin.
Xác thực
Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền reseller.manage; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.
Nơi điền id tổ chức của bạn
Điểm cuối này nhận org_id làm tham số truy vấn. Hãy bỏ trống để áp dụng cho toàn bộ cây thuê của bạn; hoặc truyền giá trị vào để thu hẹp phạm vi gọi về một tổ chức duy nhất.
Mã tổ chức của bạn nằm ở màn hình khóa API trong bảng điều khiển, ngay bên cạnh khóa đó. Đây là cùng một mã trong mọi lệnh gọi mà bạn thực hiện.
Dùng thử
Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.
curl -X POST https://api.zinndigital.com/v1/reseller/brand/font \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "family": <string> }'Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API
Chi tiết
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.
Tham số
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
org_id (query) | Uuid | Không | 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 agen… |
Nội dung yêu cầu
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
family | string | Có | — |
Phản hồi
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
family | string | Có | — |
faces | integer | Có | How 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_url | string | Có | The stylesheet, served from our origin. |
Các lỗi điểm cuối này có thể trả về
401 · 403 · 422 · 429