Organization
The profile at the top of the hierarchy, shared by every workspace of the account. The organization comes from the token alone (its org claim, as in me get) — there is no list and no {id}, and the request does not take X-Workspace-Id. See Get organization and Update organization in the API Reference.
| Command | HTTP | Description |
|---|---|---|
organization get | GET /organization | Fetch the organization of the token. Needs the settings.show permission (every system role has it). |
organization update | PATCH /organization | Update the organization's custom_metadata. Needs the settings.update permission (owner and admin). |
update only changes custom_metadata (with custom_metadata_mode). Name, e-mail and phone mirror the Kobana account: sent, they are ignored — change them in the Kobana account. Naming one of Kobana's commercial settings (courtesy, plan bypass, limits, partner, entitlements) is refused with 403 FORBIDDEN. Every change is recorded in the organization audit log.
The token needs the inbox/workspaces scope to read and inbox/workspaces write to update — the authorization server has no inbox/settings resource.
Examples
# Get the organization
kobana inbox organization get \
--fields "id,public_id,external_id,name,custom_metadata"
# Replace custom_metadata (the default mode)
kobana inbox organization update \
--json '{"custom_metadata": {"crm_id": "CRM_ID"}}'
# Merge one key over the stored custom_metadata
kobana inbox organization update \
--json '{"custom_metadata": {"crm_id": "CRM_ID"}, "custom_metadata_mode": "merge"}' \
--dry-run
Next steps
- Workspaces — the tenants that belong to the organization.
- Schema introspection — every parameter this resource accepts.