Try a lookup list that is not saved.
POST/api/v1/lookup-lists/testlookup_lists:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The Lookup List builder's Test button: runs the virtual view the list would read its values from, as the Portal's builder does, and answers the rows it returns for context, up to limit. Nothing is saved. Needs Test Lookup Lists. A view that is not found is a 422 naming the ID supplied; one the Portal cannot build or run is a 422 with the Portal's message (without the statement). A view with no query returns no rows. The rows are the view's own, whatever their columns: a list also needs a Key and a Value column to be searched.
| スコープ | lookup_lists:read |
| 非同期 | いいえ |
| MCP ツール | test_lookup_lists |
| Portal の権限 | test_lookup_lists |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | LookupListTestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json LookupListTestRows |
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 のコードです。各コードからそのページに移動できます。
スキーマ
LookupListTestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
context | object | 任意 | The values the form has captured so far. See the list of values for what each key is. |
limit | integer または null | 任意 | Rows to return, 100 by default, 1000 at most. |
virtual_view_id | string | 必須 | The virtual view the list would read its values from. |
LookupListTestRows
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
row_count | integer | 必須 | Rows in rows. ≥ -2147483648; ≤ 2147483647 |
rows | object の配列 | 必須 | One object per row, keyed by the view's own column names. Dates are text and decimals strings. |
total_rows | integer | 必須 | Rows the view returned for the caller; more than row_count when limit cut the answer. ≥ -2147483648; ≤ 2147483647 |