Skip to main content

Read the graph ontology.

GET/api/v1/graph/ontologycustom_fields:read

The ontology the Portal's Ontology screen draws from the builder's data: templates, document types, edges, the resolution order and the lint findings. include_counts adds the instance counts per relation and the rows per template, counted under the caller's row and document access (cached for two minutes per user). The body is the Portal's own document (format graph_ontology). Needs View Graph Ontology.

Scopecustom_fields:read
AsynchronousNo
MCP toolget_graph_ontology
Portal permissionsview_graph_ontology

Parameters​

NameInTypeRequiredDescription
include_countsqueryboolean or nullOptionalAdd the instance counts per relation and the rows per template, counted under the caller's access.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json GraphDocument
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GraphDocument​

FieldTypeRequiredDescription
documentobjectRequiredThe Portal's own document; its format says which.