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.
| Command | HTTP | Description |
|---|---|---|
organization get | GET /v1/organization | Get the token's organization |
organization update | PATCH /v1/organization | Update the token's organization |
organization slack-installations list | GET /v1/organization/slack_installations | Slack bot installations of the organization |
organization slack-installations update | PATCH /v1/organization/slack_installations/{installationId} | Configures a Slack installation |
organization slack-installations delete | DELETE /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​
- Workspaces
- Schema introspection — every parameter this resource accepts.