API reference
Release a gate slot
Give the slot back, or leave the queue. The same token again is fine; a stale token is a 409 and changes nothing.
Needs scope coordinator: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.
ticket_id*stringThe ticket's id, gsl_ and a ULID.
iohr.coordinator.v1.ReleaseGateSlotRequest; path variables override their fields
application/json- body
iohr.coordinator.v1.ReleaseGateSlotRequest
account_id?stringfencing_token?stringint64ticket_id?stringiohr.coordinator.v1.ReleaseGateSlotResponse
application/json- response
iohr.coordinator.v1.ReleaseGateSlotResponse
slot?iohr.coordinator.v1.GateSlot
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.coordinator.releaseGateSlot("<ticket_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.
{ "slot": { "ahead": 0, "expires_at": "string", "fencing_token": "string", "granted_at": "string", "host": "string", "id": "string", "label": "string", "queued_at": "string", "slot_limit": 0, "state": "string", "user_subject": "string" }}