Skip to main content

Change a graph view.

PATCH/api/v1/graph-views/{graph_view_id}analytics:write

A merge patch. A shared view needs Edit Shared Graph Views; a private one needs Edit Private Graph Views and is its owner's (with the licence). Only the owner can make a shared view private.

Scopeanalytics:write
AsynchronousNo
MCP toolupdate_graph_view

Parameters​

NameInTypeRequiredDescription
graph_view_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonGraphViewPatchInput
application/merge-patch+jsonGraphViewPatchInput

Responses​

StatusDescriptionBody
200Success.application/json GraphView or object
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
409already_existsapplication/problem+json Problem
412precondition_failedapplication/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.

GraphViewPatchInput​

FieldTypeRequiredDescription
definitionobject or nullOptional
descriptionstring or nullOptional
graph_view_idstring or nullOptional
is_activeboolean or nullOptional
is_ownerboolean or nullOptional
is_questionboolean or nullOptional
last_opened_atstring or nullOptional
namestring or nullOptional
owner_user_idstring or nullOptional
parametersobject or nullOptional
slugstring or nullOptional
visibilitystring or nullOptional