Interface: CreateTermRequest
@kortexya/reasoninglayer / CreateTermRequest
Interface: CreateTermRequest
Section titled “Interface: CreateTermRequest”Defined in: src/types/terms.ts:196
Request to create a new term.
Remarks
Section titled “Remarks”Features use the tagged ValueDto format. Use Value.* builders
to construct feature values.
Properties
Section titled “Properties”features
Section titled “features”features:
Record<string,ValueDto>
Defined in: src/types/terms.ts:212
Named features with tagged values.
Remarks
Section titled “Remarks”A feature whose declared range is an entity sort takes a Reference
(Value.reference(termId), {"type": "Reference", "value": "<uuid>"}),
not a string holding the id: the engine refuses a scalar literal there
with 422 (Feature '<f>' holds a <kind> literal, which is incompatible with the declared range …). A range at or below real_type admits an
integer literal.
optionalid?:string
Defined in: src/types/terms.ts:220
A client-minted id for the new term.
Remarks
Section titled “Remarks”Omit it and the engine mints one. Supplying it lets a batch reference the ids it is itself creating — see BulkAddTermsRequest.
ownerId
Section titled “ownerId”ownerId:
string
Defined in: src/types/terms.ts:200
Owner user ID (UUID).
sortId
Section titled “sortId”sortId:
string
Defined in: src/types/terms.ts:198
Sort (type) UUID that this term belongs to.