Try a virtual custom field config without saving it.
POST/api/v1/virtual-custom-fields/testregisters:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Runs the config as the Portal's Test button does and answers the rows the joined registers produce for the caller (each register is cut to the rows the caller may read before it is joined), up to limit. A config that names an inactive or missing template is 422; so is one the Portal cannot run (a column the register does not have, tables that are not joined), with the Portal's message. A field that filters by document values returns no rows here: save it and use execute_virtual_custom_field with a document. Nothing is saved. Needs Test Virtual Custom Fields, and View Custom Field Templates with access to each template the config names.
| スコープ | registers:read |
| 非同期 | いいえ |
| MCP ツール | test_virtual_custom_fields |
| Portal の権限 | test_virtual_custom_fields |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | VirtualCustomFieldTestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json VirtualCustomFieldRows |
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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
VirtualCustomFieldRows
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
row_count | integer | 必須 | Rows in rows. ≥ -2147483648; ≤ 2147483647 |
rows | object の配列 | 必須 | One object per row, keyed by the names the config gives the columns (new_name of its rename_mapping) and, for a column it does not rename, by the custom field's name (register name - field name when two columns share a name). Dates are text, decimals strings. |
total_rows | integer | 必須 | Rows the field produced for the caller; more than row_count when limit cut the answer. ≥ -2147483648; ≤ 2147483647 |
VirtualCustomFieldTestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
config | object | 必須 | The virtual custom field to try, as create_virtual_custom_field takes it: format virtual_custom_field, version 1, body {custom_fields, join_relationships}. Nothing is saved. A field that filters by document values returns no rows here, because no document is given. |
limit | integer または null | 任意 | Rows to return, 100 by default, 1000 at most. |