reseller

PATCH /v1/reseller/languages

Choose the languages and the default your clients start in.

כל נקודות הקצה מסוג reseller

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה reseller.manage; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

המקום שבו מזהה הארגון שלך נכנס

נקודת קצה זו מקבלת את 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`.

פרמטרים

שםסוגנדרשמה זה
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…

גוף הבקשה

שםסוגנדרשמה זה
localesstring[]לאReplaces the list your clients may choose from. An empty array returns you to offering every language.
default_localestringלאEmpty returns to the platform default.
switcherbooleanלאWhether the language control renders in your clients' panel.

תשובה

שםסוגנדרשמה זה
languagesResellerLanguage[]כן
offers_allbooleanכןYou have made no choice, so your clients get every language.
offered_countintegerכן
total_countintegerכן
default_localestringכןWhat a new client account starts in. Empty means the platform default.
switcherbooleanלא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