Sign in
Docs
API referenceStatus pages

API reference

Post a status notice

Have a token? Manage tokens in the console
POST
/v1/accounts/orgs/{org_id}/status-pages/{page_id}/notices

Publish a public incident or a maintenance window with its first update. It shows at once on a published page. Owner or admin.

Needs scope connections:write.

Authorization

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

Path Parameters

org_id*string

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

page_id*string

The page's id, from List status pages.

Request Body

iohr.connections.v1.CreateStatusNoticeRequest; path variables override their fields

application/json
  1. body

iohr.connections.v1.CreateStatusNoticeRequest

body?string
ends_at?string
impacts?array<>
incident_id?string
kind?string
org_id?string
page_id?string
starts_at?string
state?string
title?string

Response Body

iohr.connections.v1.CreateStatusNoticeResponse

application/json
  1. response

iohr.connections.v1.CreateStatusNoticeResponse

notice?

iohr.connections.v1.StatusNotice

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.createStatusNotice("<org_id>", "<page_id>", {    body: "<body>",    ends_at: "<ends_at>",    kind: "<kind>",    starts_at: "<starts_at>",  });  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.

Example Response
{  "notice": {    "ends_at": "string",    "id": "string",    "impacts": [      {        "component_id": "string",        "impact": "string"      }    ],    "incident_id": "string",    "kind": "string",    "resolved_at": "string",    "starts_at": "string",    "state": "string",    "title": "string",    "updates": [      {        "body": "string",        "by_role": "string",        "created_at": "string",        "id": "string",        "state": "string"      }    ]  }}