Skip to main content

List the graph's relation types.

GET/api/v1/graph/relation-typescustom_fields:read

Every relation type of the organisation's graph, each with the fields and templates configured to use it (used_by). Needs View Graph Relation Types, as the Portal's Relations screen does. The vocabulary alone, for any caller, is get_graph_schema.

Scopecustom_fields:read
AsynchronousNo
MCP toollist_graph_relation_types
Portal permissionsview_graph_relation_types
Pagingsnapshot
Default orderrelation_type_id
Sort fieldsrelation_type_id

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
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
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of GraphRelationTypeRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

GraphRelationType​

FieldTypeRequiredDescription
categorystring or nullRequired
colorstring or nullRequired
decision_categorystring or nullRequired
derivationstring or nullRequiredSet for a relation type the engine derives (it cannot be deleted).
external_codestring or nullRequired
from_kindsarray of stringRequiredWhat the relation can start from: document, register_row.
impact_directionstring or nullRequiredSet with impact_weight.
impact_weightnumber or nullRequiredAbove 0 up to 1, for an impact edge; null when the relation is not one.
inverse_labelstring or nullRequiredHow the relation reads from the other end; null when it reads the same.
is_activebooleanRequired
is_symmetricbooleanRequired
is_transitivebooleanRequired
labelstringRequired
navigation_audiencestring or nullRequiredWho sees the relation when navigating: all or analyst.
relation_type_idstringRequiredThe code, 2 to 40 capital letters, digits and underscores.
to_custom_field_template_idstring or nullRequiredThe register a relation ends at, when it is fixed.
to_kindsarray of stringRequiredWhat the relation can end at: document, register_row.
used_byarray of GraphUseRequiredThe fields and templates configured to use the relation type.

GraphUse​

FieldTypeRequiredDescription
custom_field_idstring or nullRequiredThe field; null for a template-level use.
custom_field_template_idstring or nullRequiredThe template; null for a use outside a template.
labelstringRequiredThe template, or the template and field, as the builder names it.
wherestring or nullRequiredFor a normaliser: field_role or document_link, or null.