API reference
Publish a status page
Publish the draft as it was at draft_version, what the person saw; a newer draft is refused. Each publish is a new version, and every version is kept. Owner or admin.
Needs scope connections: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.
page_id*stringThe page's id, from List status pages.
iohr.connections.v1.PublishStatusPageRequest; path variables override their fields
application/json- body
iohr.connections.v1.PublishStatusPageRequest
draft_version?integerint32org_id?stringpage_id?stringiohr.connections.v1.PublishStatusPageResponse
application/json- response
iohr.connections.v1.PublishStatusPageResponse
page?iohr.connections.v1.StatusPage
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.connections.publishStatusPage("<org_id>", "<page_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.
{ "page": { "created_at": "string", "draft": { "accent": "string", "corners": "string", "font": "string", "groups": [ { "collapsed": true, "components": [ { "description": "string", "id": "string", "monitor_ids": [ "string" ], "name": "string", "show_history": true, "show_uptime": true } ], "name": "string" } ], "has_logo": true, "header": "string", "hide_footer": true, "keep_logo": true, "language": "string", "logo": "string", "logo_type": "string", "name": "string", "site_url": "string", "support_url": "string", "theme": "string", "wording": { "degraded": "string", "footer": "string", "full_outage": "string", "maintenance": "string", "operational": "string", "partial_outage": "string" } }, "draft_version": 0, "id": "string", "published_at": "string", "published_version": 0, "slug": "string", "unpublished_changes": true, "updated_at": "string", "url": "string" }}