Questions and waiting
Answer a question
Answer an open question: the person asked, or an owner or an admin of the account. A person only, never an assistant. A decision request is answered with choice, one of its options; when it is about a document, the decision is also recorded there as a comment.
Needs scope decisions: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.
space_id*stringThe space.
question_id*stringThe question.
iohr.decisions.v1.AnswerQuestionRequest; path variables override their fields
application/json- body
iohr.decisions.v1.AnswerQuestionRequest
answer?stringchoice?stringquestion_id?stringspace_id?stringiohr.decisions.v1.AnswerQuestionResponse
application/json- response
iohr.decisions.v1.AnswerQuestionResponse
question?iohr.decisions.v1.Question
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.decisions.answerQuestion("<space_id>", "<question_id>", { answer: "<answer>", choice: "<choice>", }); 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.
{ "question": { "answer": "string", "answered_at": "string", "answered_by": "string", "asked_at": "string", "asked_by": "string", "asked_of": "string", "choice": "string", "document_id": "string", "options": [ "string" ], "question_id": "string", "reasons": "string", "recommendation": "string", "space_id": "string", "text": "string", "unblocks": "string", "via": "string" }}