API reference
Update the account's incident settings
Turn automatic investigation (auto_investigate) or opening on alerts (open_on_alert) on or off. A switch you leave out keeps its value. Owners and admins only. The platform's own limit still applies: the account can only narrow what is possible, and a person's own refresh and questions run either way.
Needs scope incidents:write.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
iohr.incidents.v1.UpdateIncidentSettingsRequest; path variables override their fields
application/json- body
iohr.incidents.v1.UpdateIncidentSettingsRequest
org_id?stringsettings?iohr.incidents.v1.IncidentSettings
iohr.incidents.v1.UpdateIncidentSettingsResponse
application/json- response
iohr.incidents.v1.UpdateIncidentSettingsResponse
settings?iohr.incidents.v1.IncidentSettings
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.incidents.updateIncidentSettings("<org_id>", {}); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "settings": { "auto_investigate": true, "incident_io": { "connection_id": "string", "last_error": "string", "state": "string" }, "open_on_alert": true, "origin": "string", "updated_at": "string", "updated_by": "string" }}