Skip to main content

Run a saved graph view.

POST/api/v1/graph-views/{graph_view_id}/executegraph:read

Runs the view with parameter values under the caller's access and records the caller's visit (bookkeeping the Portal keeps for since last_visit; nothing else is written). run is the Portal's own document (format graph_view_run): parameters, since, expand, decision, context, payload. The answer is the exploration's, with the view and the visit. Needs Run Graph Views.

Scopegraph:read
AsynchronousNo
MCP toolexecute_graph_view
Portal permissionsrun_graph_views

Parameters​

NameInTypeRequiredDescription
graph_view_idpathstringRequired
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonGraphViewRunInput

Responses​

StatusDescriptionBody
200Success.application/json GraphViewRunResult
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​

GraphView​

FieldTypeRequiredDescription
definitionobject or nullRequiredThe saved query (format graph_view_definition): the Portal's own document.
descriptionstring or nullRequired
graph_view_idstringRequired
is_activebooleanRequired
is_ownerbooleanRequiredThe caller owns the view.
is_questionbooleanRequiredThe Atlas offers the view as a question.
last_opened_atstring or nullRequiredThe caller's last visit, as the Portal records it; null when never opened or in a list.
namestringRequired
owner_user_idstring or nullRequired
parametersobject or nullRequiredThe declared parameters (format graph_view_parameters).
slugstringRequired
visibilitystringRequiredprivate (its owner's) or shared.

GraphViewRunInput​

FieldTypeRequiredDescription
runobject or nullOptionalThe run (format graph_view_run): parameters, since, expand, decision, context, payload. None: the view's own.

GraphViewRunResult​

FieldTypeRequiredDescription
previous_visit_atstring or nullRequiredThe visit before this one, which since last_visit reads.
resultobjectRequiredThe exploration's answer (format graph_exploration_result).
viewGraphViewRequired
visited_atstringRequiredThis visit.