Skip to main content

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.

CommandHTTPDescription
organization getGET /organizationFetch the organization of the token. Needs the settings.show permission (every system role has it).
organization updatePATCH /organizationUpdate 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​