Skip to content

Interface: CreateTermRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CreateTermRequest

Defined in: src/types/terms.ts:196

Request to create a new term.

Features use the tagged ValueDto format. Use Value.* builders to construct feature values.

features: Record<string, ValueDto>

Defined in: src/types/terms.ts:212

Named features with tagged values.

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.


optional id?: string

Defined in: src/types/terms.ts:220

A client-minted id for the new term.

Omit it and the engine mints one. Supplying it lets a batch reference the ids it is itself creating — see BulkAddTermsRequest.


ownerId: string

Defined in: src/types/terms.ts:200

Owner user ID (UUID).


sortId: string

Defined in: src/types/terms.ts:198

Sort (type) UUID that this term belongs to.