Skip to main content

Summarise the records related to entities.

POST/api/v1/graph/related-records/aggregategraph:read

Every register row and document related to one entity or a set of entities, grouped by register and documents with counts and months, read through the caller's access (the Atlas's Related records). Without groups it is the summary; groups lists the rows of those groups (a register's custom_field_template_id, or documents). scope direct, documents (adds the records of the documents the direct records came from) or self (the nodes themselves, for "open as table"). The filters text, date_from, date_to, document_id, only_high_confidence and include_awaiting_review narrow every group's counts and rows.

Scopegraph:read
AsynchronousNo
MCP toolaggregate_graph_related_records
Portal permissionsexecute_graph_queries

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonGraphRelatedRecordsInput

Responses​

StatusDescriptionBody
200Success.application/json GraphDocument
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/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.

GraphNodeRefInput​

FieldTypeRequiredDescription
custom_field_template_idstring or nullOptionalThe register, for a register row.
document_idstring or nullOptionalThe document, for a document.
kindstringRequireddocument or register_row.
row_idstring or nullOptionalThe row, for a register row.

GraphRelatedRecordsInput​

FieldTypeRequiredDescription
date_fromstring (date) or nullOptional
date_tostring (date) or nullOptional
document_idstring or nullOptionalOnly records that came from this document.
groupsarray of stringOptionalThe groups whose rows are read: a register's custom_field_template_id, or documents. None: the summary only.
include_awaiting_reviewboolean or nullOptionalInclude links still awaiting review. True when left out.
nodesarray of GraphNodeRefInputRequiredThe entities: one, or a set.
only_high_confidenceboolean or nullOptionalLeave out low-confidence links. False when left out.
perspectivestring or nullOptionalall (default) or executive.
scopestring or nullOptionaldirect (default), documents or self.
statusesarray of stringOptionalLink statuses to include; the Portal's default set when left out.
textstring or nullOptionalNarrow the rows to those holding this text.