Sign in
Docs

API reference

List an incident's versions

Have a token? Manage tokens in the console
GET
/v1/accounts/orgs/{org_id}/incidents/{incident_id}/versions

Every saved version of an incident, newest first: its number, who saved it, when, and what changed.

Needs scope incidents:read.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

org_id*string

The account's id: org in GET /v1/me.

incident_id*string

The incident's id, inc_ and 26 characters, from List incidents.

Query Parameters

page_size?integer

At most this many; 0 means 20, above 100 means 100.

Formatint32
page_token?string

From the previous page's next_page_token.

Response Body

iohr.incidents.v1.ListIncidentVersionsResponse

application/json
  1. response

iohr.incidents.v1.ListIncidentVersionsResponse

next_page_token*string
versions*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    }  ]}