tenancy

POST /v1/orgs

Create an organization.

Todos os endpoints de tenancy

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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

Parâmetros

NomeTipoObrigatórioO que é
Idempotency-Key (header)stringNãoClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Corpo da requisição

NomeTipoObrigatórioO que é
typeOrgTypeSimOrganization type in the tenancy tree.
parent_org_idUuid | nullNãoDefaults to the caller's org when omitted.
namestringSim
default_currencyCurrencyCodeNão

Resposta

NomeTipoObrigatórioO que é
idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
typeOrgTypeSimOrganization type in the tenancy tree.
parent_org_idUuid | nullNãoParent in the tenancy tree; null for a top-level org.
namestringSim
brand_idobjectNãoWhite-label brand applied to this org's surfaces.
default_currencyCurrencyCodeSimISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
statusstring<active, suspended, closed>Sim
created_atstringSim

Erros que este endpoint pode retornar

401 · 403 · 409 · 422 · 429