API reference
List an incident's versions
Every saved version of an incident, newest first: its number, who saved it, when, and what changed.
Needs scope incidents:read.
bearerAuthorizationBearer <token>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.
incident_id*stringThe incident's id, inc_ and 26 characters, from List incidents.
page_size?integerAt most this many; 0 means 20, above 100 means 100.
int32page_token?stringFrom the previous page's next_page_token.
iohr.incidents.v1.ListIncidentVersionsResponse
application/json- response
iohr.incidents.v1.ListIncidentVersionsResponse
next_page_token*stringversions*array<>import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { for await (const incidentVersion of api.incidents.allListIncidentVersions("<org_id>", "<incident_id>")) { console.log(incidentVersion); }} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);}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.
{ "next_page_token": "string", "versions": [ { "note": "string", "saved_at": "string", "saved_by": "string", "saved_by_email": "string", "version": 0 } ]}