Skip to main content

List or search the values of a lookup list.

POST/api/v1/lookup-lists/{lookup_list_id}/values/searchlookup_lists:read

The values the list offers a form, as the Portal loads and searches them: the rows of the list's virtual view, run by the Portal's query builder with the caller's own document and register security, with context as the view's runtime inputs. Without query every value is listed (the Portal's load); with one, only the rows whose key or label contains it, ignoring case. Values are ordered by label, then by the view's other columns, and paged by offset: the cursor holds how many were read, so a page is a snapshot of the view as it was then. A view that has no query, or cannot be built from the context (an input it needs is missing), has no values, as in the Portal's forms: run test_lookup_lists to see why. A view that returns no Key or Value column, or a label that cannot be sorted, is a 422 in the Portal's words. A lookup list that does not exist is 404. Needs View Lookup Lists.

Scopelookup_lists:read
AsynchronousNo
MCP toolsearch_lookup_list_values
Portal permissionsview_lookup_lists
Pagingsnapshot
Default orderlabel

Parameters​

NameInTypeRequiredDescription
lookup_list_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonLookupListValuesSearchInput

Responses​

StatusDescriptionBody
200Success.application/json object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of LookupListValueRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

LookupListValue​

FieldTypeRequiredDescription
columnsobjectRequiredEvery column the view returned for the row by the view's own column name, Key and Value included. Dates are text and decimals strings.
keystring or nullRequiredThe row's Key column as text: what a field stores.
labelstring or nullRequiredThe row's Value column as text: what a form shows.

LookupListValuesSearchInput​

FieldTypeRequiredDescription
contextobjectOptionalThe values the form has captured so far. See the list of values for what each key is.
querystring or nullOptionalKeep the values whose key or label contains this text, ignoring case. Without it every value is listed.