Activate Incident Management
Switches Incident Management on for your organization. Idempotent: calling it again on an enabled organization changes nothing.
POST /api/im/activate
Turns Incident Management on for your organization. Until this has run, every other endpoint of this API answers 403 with imNotEnabled; this one (and the setup state) is reachable before activation on purpose.
Activation is idempotent. On an organization that is already enabled it returns alreadyEnabled: true and changes nothing. On the first activation Uptimeify also runs its activation hooks, for example the backfill that brings open monitoring incidents into Incident Management when the monitoring bridge is on. A hook that fails does not undo the activation; its name is listed in hookErrors.
Authentication
Requires an IM-eligible role and write access to the organization: the admin role of that organization, or an organization-wide API token created by an organization admin. editor and responder receive 403 (forbidden).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organizationId | number | No | The organization to activate. Defaults to your own organization. Naming another organization only succeeds for platform administrators. |
Example (cURL)
curl -X POST "$BASE_URL/api/im/activate" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Response
First activation:
{
"organizationId": 42,
"enabled": true,
"monitoringBridge": true,
"alreadyEnabled": false,
"hookErrors": []
}Already enabled:
{
"organizationId": 42,
"enabled": true,
"monitoringBridge": true,
"alreadyEnabled": true
}| Field | Description |
|---|---|
monitoringBridge | Whether incidents from Uptimeify's own monitoring are bridged into Incident Management. Change it in the organization settings. |
hookErrors | Names of activation hooks that failed. Empty on success. Only present on the first activation. |
Common errors
400 Bad Request(organizationIdRequired) when no organization can be determined401 Unauthorizedwhen not authenticated403 Forbidden(customerScopedTokenForbidden) when using a customer-scoped token403 Forbidden(imAccessDenied) when the caller has no IM-eligible role403 Forbidden(forbidden) when the caller is not an admin of the organization