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

Create a virtual view (saved query).

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

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

The definition is validated as a query-builder document, and the view's columns are derived from it. With foreign_data_connection_id (which needs Use Foreign Data Connections) the view runs on that foreign database and its columns are derived there, with the connection's stored credentials (422 reference_not_found when the connection does not exist). Configured document-type sources also require Configure Virtual View Datasources.

スコープanalytics:write
非同期いいえ
MCP ツールcreate_virtual_view
Portal の権限create_virtual_views

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonVirtualViewCreateInput

応答​

ステータス説明本文
201Success.application/json VirtualView または 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
409idempotency_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 のコードです。各コードからそのページに移動できます。

スキーマ​

UserRef​

フィールド型必須説明
display_namestring必須
kindstring: user, system, integration または string必須
user_idstring または null必須

VirtualView​

フィールド型必須説明
created_byUserRef または null必須
definitionobject または null必須format query_builder: body {json_logic, builder_config, context}; null in list items.
document_type_idsstring の配列必須
foreign_data_connection_idstring または null必須The foreign data connection the view's query runs on; null for a view on the Docwize database, and null without View Foreign Data Connections. Set when the view is created and never changed.
namestring必須
settingsobject または null必須format query_builder_settings: the view's settings with its derived columns; null in list items.
updated_atstring (date-time) または null必須
view_typestring必須The view's data type (grid unless the view says otherwise).
virtual_view_idstring必須

VirtualViewCreateInput​

フィールド型必須説明
definitionobject必須
document_type_idsstring の配列任意
foreign_data_connection_idstring または null任意Run the view's query on this foreign data connection instead of the Docwize database (list_foreign_data_connections; its tables are in get_foreign_data_connection_database_schema). The columns are derived on that connection. Cannot be changed afterwards.
namestring必須
settingsobject または null任意
view_typestring または null任意