Retrieve type
GET /ontology/v1/types/{name}
Read one registered type’s definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.
Support: supported
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| name | path | string | true | A type name from types.list, with its dots preserved — a display label is not accepted. |
Response
HTTP 200
The registration that carries this type, with its kind and definition.
application/json
| Name | Type | Description |
|---|---|---|
| owner | string | Service that registered this type; a change to the type is checked against that registrant. |
| version | integer | Version of the registration this type came from, so a caller can tell when a definition moved on. |
| kind | string | Whether the type describes an entity or a fact, which decides whether it is used when creating a node or a relation. |
| definition | object | The full registered definition — the same object as the entry in its registration's nodes or edges array. |