Skip to content
中文

List types

GET /ontology/v1/types

Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant’s registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.

Support: supported

Response

HTTP 200

Every registration in force for this organization, in registration order.

application/json

Name Type Description
data array<object> The registrations in force for this organization.
data[].owner string Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against.
data[].version integer Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.
data[].nodes array<object> Node types this owner registers.
data[].edges array<object> Relation types this owner registers.
next_cursor string Always null here; the field is present so every list on this face has the same shape.