paradime.admin.notifications reads the company’s Slack connection and sets where a workspace’s alerts go: Slack and email. For the GraphQL operations, see Notifications.
Prerequisites
- These operations are part of the Enterprise plan. On other plans, they raise
AdminPlanUpgradeRequiredException. - Your API key needs the Notifications admin capability group. To disconnect Slack, use a company API key.
- The admin client of the
paradime-iopackage. See Admin client.
Slack is connected once for the company, and every workspace shares the connection. A company admin connects it in a browser: the API can’t. See Notifications.
Get the Slack connection
Reads the company’s Slack connection. When Slack is not connected,install_url is the Paradime settings page where a company admin connects it.
The workspace to target, for a company API key. The Slack connection doesn’t depend on it.
Disconnect Slack
Removes the company’s Slack connection, for every workspace. Needs a company API key. Disconnecting again is not an error.The Slack team that you expect to be connected. When another team is connected, nothing changes and the call raises
AdminConflictException.Get alert destinations
Reads where one category of the workspace’s alerts goes.The alerts to read.
BOLT_SYSTEM is the alerts that Paradime sends about Bolt schedules and their runs.Set alert destinations
Routes one category of the workspace’s alerts. A destination you leave out keeps its value. Each destination you give replaces its value, so an empty list removes it.Slack channel ids. When you give it, with or without
slack_user_ids, it replaces the Slack destination.Types
Import the models and enums fromparadime.apis.admin.notifications.types.