API reference
Who covers
Who covers a schedule at an instant, from an override, a layer or the default, with the span and its scope. Name a responder and a kind (merge, roll, migration or ask) to learn whether they may act on it then, and why.
Needs scope schedules:read.
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.
schedule_id*stringThe schedule.
account_id?stringA team you belong to; empty for your own account.
at?stringAn RFC 3339 time; empty is now.
responder.kind?stringresponder.id?stringkind?stringmerge, roll, migration or ask, with a responder.
iohr.schedules.v1.WhoCoversResponse
application/json- response
iohr.schedules.v1.WhoCoversResponse
allowed*booleanat*stringcoverage?iohr.schedules.v1.Coverage
why*stringimport { 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.schedules.whoCovers("<schedule_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.
{ "allowed": true, "at": "string", "coverage": { "end": "string", "layer_id": "string", "override_id": "string", "responder": { "id": "string", "kind": "string" }, "scope": [ "string" ], "source": "string", "start": "string" }, "why": "string"}