Detect the columns that match across virtual views.
POST/api/v1/virtual-views/detect-column-mappingsanalytics:read
Pairs the columns of the given views by their lower-cased names. The result is a suggestion for the caller to confirm.
| Scope | analytics:read |
| Asynchronous | No |
| MCP tool | detect_virtual_view_column_mappings |
| Portal permissions | detect_query_builder_column_mappings, view_virtual_view_schema |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | VirtualViewDetectColumnMappingsInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json VirtualViewColumnMappings |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
VirtualViewColumnMapping
| Field | Type | Required | Description |
|---|---|---|---|
confidence | number | Required | |
mapping_key | string | Required | source view, source column, target view and target column, as text. |
mapping_type | string | Required | auto: matched by name. |
source_column | string | Required | |
source_virtual_view_id | string | Required | |
target_column | string | Required | |
target_virtual_view_id | string | Required |
VirtualViewColumnMappings
| Field | Type | Required | Description |
|---|---|---|---|
mappings | array of VirtualViewColumnMapping | Required |
VirtualViewDetectColumnMappingsInput
| Field | Type | Required | Description |
|---|---|---|---|
view_ids | array of string | Optional | The views to compare, pairwise in the order given. |