Interface: BulkBindSortsResponse
@kortexya/reasoninglayer / BulkBindSortsResponse
Interface: BulkBindSortsResponse
Section titled “Interface: BulkBindSortsResponse”Defined in: src/types/ontology-bridge.ts:123
Response from a bulk sort-table bind.
Remarks
Section titled “Remarks”The endpoint always returns HTTP 200, even when some bindings failed:
partial success is reported in the body, not the status code. Callers MUST
inspect BulkBindSortsResponse.errors — boundCount alone does not
tell you whether every binding in the request succeeded. Compare boundCount
against the number of submitted bindings, or check that errors is empty.
Example
Section titled “Example”const result = await client.ontologyBridge.bulkBindSorts({ bindings });if (result.errors && result.errors.length > 0) { for (const failure of result.errors) { console.error(`${failure.sortName}: ${failure.error}`); }}console.log(`${result.boundCount}/${bindings.length} bound`);Properties
Section titled “Properties”boundCount
Section titled “boundCount”boundCount:
number
Defined in: src/types/ontology-bridge.ts:125
Number of bindings that succeeded.
errors?
Section titled “errors?”
optionalerrors?:BulkBindError[]
Defined in: src/types/ontology-bridge.ts:127
Per-item failures. Empty (or absent) when every binding succeeded.