Skip to main content

Organization

The token's organization: name, time zone, monthly cost cap and custom_metadata. It is only the token's organization (the one in the org claim): get and update take no id, and there is no organization listing.

CommandHTTPDescription
organization getGET /v1/organizationGet the token's organization
organization updatePATCH /v1/organizationUpdate the token'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

Examples​

--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits the fields that come back — worth using on every list/get to save context. See Global flags for the full reference.

# Get the token's organization
kobana kadu organization get --fields "id,label"

# Update the token's organization
kobana kadu organization update --json '{"timezone": "America/Sao_Paulo"}'

# Slack bot installations of the organization
kobana kadu organization slack-installations list

# Configures a Slack installation
kobana kadu organization slack-installations update \
--params '{"installationId": "INSTALLATION_ID"}'

# Removes a Slack installation
kobana kadu organization slack-installations delete \
--params '{"installationId": "INSTALLATION_ID"}' \
--dry-run

Next steps​