Skip to main content

kobana kadu organization

Token's organization

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

CommandHTTPDescription
organizationGET /v1/organizationToken's organization
organization slack-installations listGET /v1/organization/slack_installationsSlack bot installations of the organization
organization slack-installations updatePATCH /v1/organization/slack_installations/{installationId}Configures a Slack installation
organization slack-installations deleteDELETE /v1/organization/slack_installations/{installationId}Removes a Slack installation
organization updatePATCH /v1/organizationUpdate the token's organization

organization​

Token's organization

kobana kadu organization [OPTIONS] [COMMAND]

GET /v1/organization

Returns only the token's organization (the one in the org claim). It takes no id and does not list: there is no way to read another organization through this API.

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

organization slack-installations list​

Slack bot installations of the organization

kobana kadu organization slack-installations list [OPTIONS]

GET /v1/organization/slack_installations

Slack workspaces linked to the token's organization (always the token's; no id).

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

organization slack-installations update​

Configures a Slack installation

kobana kadu organization slack-installations update [INSTALLATIONID] [OPTIONS]

PATCH /v1/organization/slack_installations/{installationId}

Where the bot answers (allowed_channel_types), output files as a link or attachment (files_mode, max_upload_bytes up to 100 MB) and detail in the thread (log_detail).

Path arguments: installationId

Request body

NameTypeRequiredDescription
allowed_channel_typesarray<string>no
files_modestringnoValues: link, upload.
max_upload_bytesintegerno
log_detailstringnoValues: milestones, verbose.

More fields and nested objects: kobana schema kadu.organization.slack-installations.update.

Responses

HTTPDescription
200OK
400VALIDATION_ERROR
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

organization slack-installations delete​

Removes a Slack installation

kobana kadu organization slack-installations delete [INSTALLATIONID] [OPTIONS]

DELETE /v1/organization/slack_installations/{installationId}

Requires the delete level (or all). Revokes the bot token in Slack and undoes the account connections.

Path arguments: installationId

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

organization update​

Update the token's organization

kobana kadu organization update [OPTIONS]

PATCH /v1/organization

Changes only the token's organization (the one in the org claim); takes no id. monthly_cost_limit and bypass_subscription are set by Kobana and rejected (403).

Request body

NameTypeRequiredDescription
labelstringno
timezonestringno
default_localestringnoValues: pt-BR, en-US, es-ES.
custom_metadataobjectno

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

Responses

HTTPDescription
200OK
400VALIDATION_ERROR
409IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_REQUEST_IN_PROGRESS (or the route's CONFLICT)
503AS_UNAVAILABLE — token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).