Prerequisites:
- These operations are part of the Enterprise plan. On other plans, they fail with
PLAN_UPGRADE_REQUIRED. - An account API key or a workspace API key. With an account key, send
X-Paradime-Workspaceto read or set a workspace’s alerts.disconnectSlackneeds an account key. - The Notifications admin capability group.
Operations
Check the Slack connection
Slack connects once for the whole account, soslack needs no X-Paradime-Workspace header.
statusisCONNECTEDwhen Slack is connected. It isPENDING_USER_ACTIONwhen an account admin has to connect Slack in a browser: send them toinstallUrl, the Paradime settings page where Slack is connected. An API call can’t finish this step. See Steps that need a person.isReconnectRequiredistruewhen Slack must be connected again to grant the scopes inmissingScopes.installUrlis set until it is done.
Example response
Example response
Route Bolt system alerts
Bolt system alerts tell you about problems with Bolt itself, such as a repository Bolt can’t clone. In Paradime, you set them in the Bolt System Alerts panel of the Bolt schedules homepage. Through the API,setAlertNotifications sets them for the targeted workspace. The only category is BOLT_SYSTEM.
- A destination you leave out keeps its value. A destination you send replaces its value.
slack.channelIdsandslack.userIdsare the full set of Slack destinations. Use Slack ids, such asC04ABCDEF12for a channel andU02ABCDEF34for a user, not names. To remove every Slack destination, send both lists empty.- Slack must be connected to the account before you add a Slack destination.
email.isEnabledturns alert emails to the workspace admins on or off, as the Email workspace admins switch does.
Example response
Example response
alertNotifications on the workspace:
Disconnect Slack
disconnectSlack removes the Slack connection from the whole account, for every workspace. It needs an account key, and no X-Paradime-Workspace header. Send the teamId you expect to be connected: if another Slack team is connected, nothing changes and the call fails with CONFLICT. Disconnecting again is not an error.
status is PENDING_USER_ACTION, and installUrl is where an account admin connects Slack again.
Errors
These are the cases specific to notifications. For the error format and the codes every area shares, see Errors.Related
- Python SDK: Notifications: the same operations in
paradime.admin.notifications. - Notifications: every kind of notification Paradime sends, and where to set it.
- Notification settings: schedule notifications and Bolt system alerts in Paradime.
- Slack and Microsoft Teams: connect the chat tools.