reseller
PATCH /v1/reseller/languages
Choose the languages and the default your clients start in.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea reseller.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.
Unde merge ID-ul organizației tale
Acest punct final acceptă org_id ca parametru de interogare. Omiteți-l și apelul va acoperi întregul subarbore al chiriașului dvs.; trimiteți-l pentru a restrânge apelul la o singură organizație.
ID-ul organizației tale se află pe ecranul cheilor API din panoul de control, lângă cheia însăși. Este același ID în fiecare apel pe care îl faci.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X PATCH https://api.zinndigital.com/v1/reseller/languages \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
`locales` replaces the list your clients may choose from; send an empty array to go back to offering every language. `default_locale` is what a new client account starts in and must be one you offer — your clients can still change their own language afterwards. A code we do not ship is refused rather than dropped. Requires `reseller.manage`.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
org_id (query) | Uuid | Nu | 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… |
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
locales | string[] | Nu | Replaces the list your clients may choose from. An empty array returns you to offering every language. |
default_locale | string | Nu | Empty returns to the platform default. |
switcher | boolean | Nu | Whether the language control renders in your clients' panel. |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
languages | ResellerLanguage[] | Da | — |
offers_all | boolean | Da | You have made no choice, so your clients get every language. |
offered_count | integer | Da | — |
total_count | integer | Da | — |
default_locale | string | Da | What a new client account starts in. Empty means the platform default. |
switcher | boolean | Nu | Whether the language control renders in your clients' panel at all. `false` shows every client the panel in `default_locale`; it never removes their right to change their own ac… |
Erori pe care le poate returna acest punct final
401 · 403 · 404 · 422 · 429