tenancy

POST /v1/orgs

Create an organization.

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

אימות

שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

curl -X POST https://api.zinndigital.com/v1/orgs \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "type": <OrgType>, "name": <string> }'

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

Creates a child organization under the caller's org (reseller creating a client, etc.). Send an `Idempotency-Key` so retries never create duplicates (docs/09 §2).

פרמטרים

שםסוגנדרשמה זה
Idempotency-Key (header)stringלאClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

גוף הבקשה

שםסוגנדרשמה זה
typeOrgTypeכןOrganization type in the tenancy tree.
parent_org_idUuid | nullלאDefaults to the caller's org when omitted.
namestringכן
default_currencyCurrencyCodeלא

תשובה

שםסוגנדרשמה זה
idUuidכןUUIDv7 identifier — sortable by creation time (docs/02 §8).
typeOrgTypeכןOrganization type in the tenancy tree.
parent_org_idUuid | nullלאParent in the tenancy tree; null for a top-level org.
namestringכן
brand_idobjectלאWhite-label brand applied to this org's surfaces.
default_currencyCurrencyCodeכןISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
statusstring<active, suspended, closed>כן
created_atstringכן

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 409 · 422 · 429