Skip to main content

Try a lookup list that is not saved.

POST/api/v1/lookup-lists/testlookup_lists:read

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.

Scopelookup_lists:read
AsynchronousNo
MCP tooltest_lookup_lists
Portal permissionstest_lookup_lists

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonLookupListTestInput

Responses​

StatusDescriptionBody
200Success.application/json LookupListTestRows
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
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

LookupListTestInput​

FieldTypeRequiredDescription
contextobjectOptionalThe values the form has captured so far. See the list of values for what each key is.
limitinteger or nullOptionalRows to return, 100 by default, 1000 at most.
virtual_view_idstringRequiredThe virtual view the list would read its values from.

LookupListTestRows​

FieldTypeRequiredDescription
row_countintegerRequiredRows in rows. ≥ -2147483648; ≤ 2147483647
rowsarray of objectRequiredOne object per row, keyed by the view's own column names. Dates are text and decimals strings.
total_rowsintegerRequiredRows the view returned for the caller; more than row_count when limit cut the answer. ≥ -2147483648; ≤ 2147483647