reseller
PATCH /v1/reseller/languages
Choose the languages and the default your clients start in.
Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Кілтте reseller.manage рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.
Ұйымыңыздың идентификаторы орналасатын жер
Бұл соңғы нүкте сұрау параметрі ретінде org_id мәнін қабылдайды. Оны бос қалдырсаңыз, шақыру бүкіл жалға алушы тармағын қамтиды; шақыруды бір ұйымға шектеу үшін оны жіберіңіз.
Сіздің ұйым идентификаторыңыз басқару панеліндегі API кілттері экранында, кілттің өзінің жанында орналасқан. Бұл сіз жасайтын әрбір шақырудағы бірдей идентификатор.
Әрекет етіп көру
Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.
curl -X PATCH https://api.zinndigital.com/v1/reseller/languages \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз
Мәліметтер
`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`.
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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… |
Сұрау денесі
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
locales | string[] | Жоқ | Replaces the list your clients may choose from. An empty array returns you to offering every language. |
default_locale | string | Жоқ | Empty returns to the platform default. |
switcher | boolean | Жоқ | Whether the language control renders in your clients' panel. |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
languages | ResellerLanguage[] | Иә | — |
offers_all | boolean | Иә | You have made no choice, so your clients get every language. |
offered_count | integer | Иә | — |
total_count | integer | Иә | — |
default_locale | string | Иә | What a new client account starts in. Empty means the platform default. |
switcher | boolean | Жоқ | 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… |
Бұл соңғы нүкте қайтара алатын қателер
401 · 403 · 404 · 422 · 429