Skip to main content

kobana dashboards organization

Get current organization

Commands of kobana dashboards organization. Every global option (Global options) applies here.

CommandHTTPDescription
organizationGET /v1/organizationGet current organization
organization updatePATCH /v1/organizationUpdate current organization

organization​

Get current organization

kobana dashboards organization [OPTIONS] [COMMAND]

GET /v1/organization

Returns the data of the organization the authenticated token belongs to. There is no :id parameter — the organization is always resolved from the API key.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Current organization detail.
404Resource not found in the current organization.

organization update​

Update current organization

kobana dashboards organization update [OPTIONS]

PATCH /v1/organization

Updates the profile of the authenticated organization. Only addresses and custom_metadata are editable (custom_metadata: null keeps the current value). name, email and phone mirror the Kobana Account: only the sync with the Kobana Account writes them, and a body that carries them answers 200 without changing them. Identity (id, public_id, external_id, status, slug) is ignored as well. Commercial fields (such as bypass_subscription, courtesy and monthly_cost_limit) are set by Kobana and answer 403.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
addressesarray<object>noList of organization addresses.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).

More fields and nested objects: kobana schema dashboards.organization.update.

Responses

HTTPDescription
200Organization updated.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.