A comment on a section of the current version, or a reply to a thread.
Needs scope rfc:write.
bearerAuthorizationBearer <token>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (docs.inorbit.hr). The gateway verifies it; the audience is iohr-api.
space_id*stringThe space's id, lab_ and a ULID, from List spaces.
document_id*stringThe document's id, ldoc_ and a ULID, from List documents.
iohr.rfcs.v1.AddCommentRequest; path variables override their fields
application/json- body
iohr.rfcs.v1.AddCommentRequest
anchor?stringbody?stringdocument_id?stringparent_id?stringquote?iohr.rfcs.v1.Quote
space_id?stringiohr.rfcs.v1.AddCommentResponse
application/json- response
iohr.rfcs.v1.AddCommentResponse
comment?iohr.rfcs.v1.Comment
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.rfcs.addComment("<space_id>", "<document_id>", { anchor: "<anchor>", body: "<body>", }); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);}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.
{ "comment": { "anchor": "string", "author": "string", "body": "string", "comment_id": "string", "created_at": "string", "document_id": "string", "parent_id": "string", "quote": { "exact": "string", "prefix": "string", "start": 0, "suffix": "string" }, "resolved": true, "resolved_at": "string", "resolved_by": "string", "version": 0 }}