tenancy

POST /v1/orgs

Create an organization.

Alle tenancy-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.

Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

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

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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).

Parameters

NaamTypeVerplichtWat dit is
Idempotency-Key (header)stringNeeClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Aanvraaglichaam

NaamTypeVerplichtWat dit is
typeOrgTypeJaOrganization type in the tenancy tree.
parent_org_idUuid | nullNeeDefaults to the caller's org when omitted.
namestringJa
default_currencyCurrencyCodeNee

Reactie

NaamTypeVerplichtWat dit is
idUuidJaUUIDv7 identifier — sortable by creation time (docs/02 §8).
typeOrgTypeJaOrganization type in the tenancy tree.
parent_org_idUuid | nullNeeParent in the tenancy tree; null for a top-level org.
namestringJa
brand_idobjectNeeWhite-label brand applied to this org's surfaces.
default_currencyCurrencyCodeJaISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
statusstring<active, suspended, closed>Ja
created_atstringJa

Fouten die dit eindpunt kan retourneren

401 · 403 · 409 · 422 · 429