tenancy
PATCH /v1/orgs/{orgId}
Rename an organization.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу org.update; кључ без ње се одбија уз 403, а не 404.
Где се уноси ID ваше организације
Ова крајња тачка узима ID ваше организације у самом URL-у, као orgId. Замените га у путањи — не постоји заглавље или параметар упита који могу послужити уместо тога.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X PATCH https://api.zinndigital.com/v1/orgs/{orgId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
⛔ Deliberately narrow: only name. type, parent_org_id and default_currency are not editable here — re-parenting moves a whole billing relationship and is tenancy.offboarding's job. ⭐ The currency is not un-changeable, it simply is not a patchable field: it has its own route, POST /v1/orgs/{orgId}/billing-currency (changeOrganizationBillingCurrency), because re-denominating converts the wallet and re-prices live subscriptions rather than writing one column. This description read "a currency change would leave stored prices and issued invoices denominated in something the org no longer claims (#501)" until 2026-08-31, which was true of a patch and was read as "it cannot be done". Requires org.update on that org; an org you cannot reach answers 404 rather than 403, the same as the GET, so this is never an existence oracle.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
orgId (path) | Uuid | Да | Organization ID (UUIDv7). |
orgId (path) | Uuid | Да | — |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
name | string | Да | The organization's display name. The only editable field. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
type | OrgType | Да | Organization type in the tenancy tree. |
parent_org_id | Uuid | null | Не | Parent in the tenancy tree; null for a top-level org. |
name | string | Да | — |
brand_id | object | Не | White-label brand applied to this org's surfaces. |
default_currency | CurrencyCode | Да | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
status | string<active, suspended, closed> | Да | — |
created_at | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429