列出节点
GET /ontology/v1/nodes
Discover the entities in this organization’s graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.
支持状态: supported
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| type | query | array<string> | false | Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type. |
| q | query | string | false | Free text matched against node names, aliases and descriptions; omit to list without a text filter. |
| owner | query | string | false | Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner. |
| as_of | query | string | false | ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state. |
| limit | query | integer | false | Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100. |
| cursor | query | string | false | Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null. |
响应
HTTP 200
One page of nodes, ordered by node id, with next_cursor null on the last page.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| data | array<object> | The nodes on this page, ordered by node id. |
| data[].id | string | Node id, used by relations, merges and later reads; treat it as opaque and do not parse it. / Node id, usable to relate this entity to others; treat it as opaque. |
| data[].type | string | Registered node type this entity was recorded as; it never changes after creation. / Registered node type of the hidden entity, which is not itself restricted content. |
| data[].ref | string | Id of the mirrored record in the service that owns it, matching the type's ref_prefix; null for a concept with no external record. |
| data[].name | string | Display name of the entity, at most 200 characters. / Display name of the hidden entity, shown so a caller can tell whether the reached node is the one it meant. |
| data[].aliases | array<string> | Other names this entity is known by; they are matched by search alongside the name. |
| data[].description | string | Profile of the entity, at most 500 characters; null when none was recorded. |
| data[].owner | string | Member id whose content this is; null means it is readable organization-wide. Another member's node comes back restricted. |
| data[].merged_into | string | When this node was merged into another, that survivor's id; reads of a merged node resolve to the survivor. |
| data[].created_at | string | System time when the node was first recorded, in ISO 8601 UTC. |
| data[].updated_at | string | System time of the last change to this node's content, in ISO 8601 UTC. |
| data[].deleted_at | string | System time the mirrored record was deleted, when that is known; kept so history stays answerable. |
| data[].restricted | boolean | Always true; its presence is how a caller tells a withheld node from a readable one. |
| next_cursor | string | Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged. |