Knowledge Bases

Enable graph capabilities

Changed on

Attach a graph layer to an existing knowledge collection.

put/api/v0/knowledge-bases/{kb_id}/graph

Request

Path parameters

kb_idstring uuid required

Request body

package_slugstring nullable

Slug of the package to subscribe the new graph to.

package_versionstring nullable

Exact version of the package to pin.

Response

Successful Response

idstring uuid required

The ID of the knowledge base.

namestring required

The name of the knowledge base.

descriptionstring required

The description of the knowledge base.

document_countinteger required

The number of documents in the knowledge base.

created_atstring date-time required

When the knowledge base was created.

updated_atstring date-time required

When the knowledge base was last updated.

graph_enabledboolean

Whether the collection has graph capabilities enabled.

graph_status'disabled' | 'ready' | 'stale'

Graph projection status: disabled, ready, or stale.

graph_source_revisioninteger nullable

Counter bumped every time the graph's inputs change: a document joining or leaving the collection, or a member drawing's annotation being edited. Null when no graph layer exists.

graph_projected_revisioninteger nullable

The source revision the last projection ran against. Equal to graph_source_revision exactly when the projection is current, which is what graph_status reports as 'ready'. Null when no graph layer exists.

graph_packagesstring[]

Slugs of the ontology packages this collection's graph subscribes, sorted. Empty when no graph layer exists.

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status