メインコンテンツまでスキップ

Save a graph view or question.

POST/api/v1/graph-viewsanalytics:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

A private view needs Create Private Graph Views and the Docwize Atlas licence, a shared one Create Shared Graph Views (403 otherwise). The caller owns it. definition is the Portal's query definition (format graph_view_definition), parameters the declared parameters (format graph_view_parameters); a parameter the definition uses must be declared. 409 already_exists when the slug is taken.

スコープanalytics:write
非同期いいえ
MCP ツールcreate_graph_view

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonGraphViewCreateInput

応答​

ステータス説明本文
201Success.application/json GraphView または object
400invalid_version, malformed_jsonapplication/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
409already_exists, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

GraphView​

フィールド型必須説明
definitionobject または null必須The saved query (format graph_view_definition): the Portal's own document.
descriptionstring または null必須
graph_view_idstring必須
is_activeboolean必須
is_ownerboolean必須The caller owns the view.
is_questionboolean必須The Atlas offers the view as a question.
last_opened_atstring または null必須The caller's last visit, as the Portal records it; null when never opened or in a list.
namestring必須
owner_user_idstring または null必須
parametersobject または null必須The declared parameters (format graph_view_parameters).
slugstring必須
visibilitystring必須private (its owner's) or shared.

GraphViewCreateInput​

フィールド型必須説明
definitionobject必須The query to save (format graph_view_definition).
descriptionstring または null任意Up to 1000 characters.
is_activeboolean または null任意True when left out.
namestring必須Up to 200 characters.
parametersobject または null任意The declared parameters (format graph_view_parameters); none when left out.
slugstring必須Lower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters.
visibilitystring または null任意private (default; needs Create Private Graph Views and the Docwize Atlas licence) or shared (needs Create Shared Graph Views).